diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2006-08-16 06:56:16 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-09-23 04:41:00 -0400 |
commit | 5e4968e24ced93b7b130e7e1fc947a79f82776bf (patch) | |
tree | f90d1b77d7f033ba058177c323127651ef5d8d73 /sound | |
parent | 6fb982803522bc86ca61774c6edf317f77165453 (diff) |
[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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/fm801.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c index 88a3e9f3224a..f3f2b2c99723 100644 --- a/sound/pci/fm801.c +++ b/sound/pci/fm801.c | |||
@@ -321,10 +321,8 @@ static unsigned int channels[] = { | |||
321 | 2, 4, 6 | 321 | 2, 4, 6 |
322 | }; | 322 | }; |
323 | 323 | ||
324 | #define CHANNELS sizeof(channels) / sizeof(channels[0]) | ||
325 | |||
326 | static struct snd_pcm_hw_constraint_list hw_constraints_channels = { | 324 | static struct snd_pcm_hw_constraint_list hw_constraints_channels = { |
327 | .count = CHANNELS, | 325 | .count = ARRAY_SIZE(channels), |
328 | .list = channels, | 326 | .list = channels, |
329 | .mask = 0, | 327 | .mask = 0, |
330 | }; | 328 | }; |