diff options
Diffstat (limited to 'sound/pci/fm801.c')
-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 | }; |