sound/pci/fm801: Use ARRAY_SIZE macro
Subsystems (2)
PATCH 1/1 sound/pci/fm801: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0])
Signed-off-by Tobias Klauser <[email protected]>
--- sound/pci/fm801.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
sound/pci/fm801.c +1 -3
@@ -318,10 +318,8 @@ static unsigned int channels[] = { 2, 4, 6 }; -#define CHANNELS sizeof(channels) / sizeof(channels[0]) -static struct snd_pcm_hw_constraint_list hw_constraints_channels = { - .count =CHANNELS , + .count =ARRAY_SIZE (channels), .list = channels, .mask =0 , };
Signature · 6 lines
1.4.1 _______________________________________________ Kernel-janitors mailing list [email protected] https://lists.osdl.org/mailman/listinfo/kernel-janitors