diff options
author | Jérémy Lefaure <[email protected]> | 2017-10-12 22:36:31 -0400 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2017-10-13 15:14:08 +0200 |
commit | a9291f461d2e727ac0812d7021653379fea4b782 (patch) | |
tree | c23373d95c1eb240c8d18e856b0b01b4f44090b3 /lib/test_overflow.c | |
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions