Commit 5e4968e2 authored by Tobias Klauser's avatar Tobias Klauser Committed by Jaroslav Kysela

[ALSA] sound/pci/fm801: Use ARRAY_SIZE macro

Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0])
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent 6fb98280
......@@ -321,10 +321,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,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment