[ALSA] sound/pci/fm801: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:
parent
6fb9828035
commit
5e4968e24c
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue