aboutsummaryrefslogtreecommitdiffstats
path: root/sound/oss/nec_vrc5477.c
diff options
context:
space:
mode:
authorAhmed S. Darwish <darwish.07@gmail.com>2007-02-12 03:52:08 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:29 -0500
commit8b5925fd5461c9f1ac77ede48945ca1945202ddb (patch)
tree20bd72cd17d4bf77b6a56d383e4824db1655cc98 /sound/oss/nec_vrc5477.c
parentb322f4095056d6849c49412eb3e36637a062e9c0 (diff)
[PATCH] OSS: Use ARRAY_SIZE macro when appropriate (2)
Use ARRAY_SIZE macro already defined in kernel.h Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/oss/nec_vrc5477.c')
-rw-r--r--sound/oss/nec_vrc5477.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/oss/nec_vrc5477.c b/sound/oss/nec_vrc5477.c
index da9728e17727..d459bdb14154 100644
--- a/sound/oss/nec_vrc5477.c
+++ b/sound/oss/nec_vrc5477.c
@@ -1381,11 +1381,11 @@ static int vrc5477_ac97_ioctl(struct inode *inode, struct file *file,
1381 int val, ret; 1381 int val, ret;
1382 1382
1383#ifdef VRC5477_AC97_DEBUG 1383#ifdef VRC5477_AC97_DEBUG
1384 for (count=0; count<sizeof(ioctl_str)/sizeof(ioctl_str[0]); count++) { 1384 for (count = 0; count < ARRAY_SIZE(ioctl_str); count++) {
1385 if (ioctl_str[count].cmd == cmd) 1385 if (ioctl_str[count].cmd == cmd)
1386 break; 1386 break;
1387 } 1387 }
1388 if (count < sizeof(ioctl_str)/sizeof(ioctl_str[0])) 1388 if (count < ARRAY_SIZE(ioctl_str))
1389 printk(KERN_INFO PFX "ioctl %s\n", ioctl_str[count].str); 1389 printk(KERN_INFO PFX "ioctl %s\n", ioctl_str[count].str);
1390 else 1390 else
1391 printk(KERN_INFO PFX "ioctl unknown, 0x%x\n", cmd); 1391 printk(KERN_INFO PFX "ioctl unknown, 0x%x\n", cmd);