projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fb9828
)
[ALSA] sound/pci/fm801: Use ARRAY_SIZE macro
author
Tobias Klauser
<
[email protected]
>
Wed, 16 Aug 2006 10:56:16 +0000
(12:56 +0200)
committer
Jaroslav Kysela
<
[email protected]
>
Sat, 23 Sep 2006 08:41:00 +0000
(10:41 +0200)
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0])
Signed-off-by: Tobias Klauser <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Takashi Iwai <
[email protected]
>
Signed-off-by: Jaroslav Kysela <
[email protected]
>
sound/pci/fm801.c
patch
|
blob
|
history
diff --git
a/sound/pci/fm801.c
b/sound/pci/fm801.c
index 88a3e9f3224ab0a3e5d5e76727c88681c71f76c1..f3f2b2c99723a9ee6bb6d885b75bd3c7897b8ba5 100644
(file)
--- a/
sound/pci/fm801.c
+++ b/
sound/pci/fm801.c
@@
-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,
};