summaryrefslogtreecommitdiff
path: root/sound/pci/ad1889.c
diff options
context:
space:
mode:
authorJérémy Lefaure <jeremy.lefaure@lse.epita.fr>2017-10-12 22:36:31 -0400
committerTakashi Iwai <tiwai@suse.de>2017-10-13 15:14:08 +0200
commita9291f461d2e727ac0812d7021653379fea4b782 (patch)
treec23373d95c1eb240c8d18e856b0b01b4f44090b3 /sound/pci/ad1889.c
parent8ed5d192c0beb34c9a679b390c2e4077ae977dc2 (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>
Diffstat (limited to 'sound/pci/ad1889.c')
0 files changed, 0 insertions, 0 deletions