Skip to content

Commit

Permalink
[ALSA] sound/pci/fm801: Use ARRAY_SIZE macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tobias Klauser authored and Jaroslav Kysela committed Sep 23, 2006
1 parent 6fb9828 commit 5e4968e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sound/pci/fm801.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 5e4968e

Please sign in to comment.