commit | a9291f461d2e727ac0812d7021653379fea4b782 | [log] [tgz] |
---|---|---|
author | Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> | Thu Oct 12 22:36:31 2017 -0400 |
committer | Takashi Iwai <tiwai@suse.de> | Fri Oct 13 15:14:08 2017 +0200 |
tree | c23373d95c1eb240c8d18e856b0b01b4f44090b3 | |
parent | 8ed5d192c0beb34c9a679b390c2e4077ae977dc2 [diff] |
ALSA: hda/ca0132 - use ARRAY_SIZE Using the ARRAY_SIZE macro improves the readability of the code. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> Signed-off-by: Takashi Iwai <tiwai@suse.de>