Linear degeneracy and shock waves