diff options
Diffstat (limited to 'sound/oss/au1550_ac97.c')
-rw-r--r-- | sound/oss/au1550_ac97.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/oss/au1550_ac97.c b/sound/oss/au1550_ac97.c index 219795171c71..a339f0c0d512 100644 --- a/sound/oss/au1550_ac97.c +++ b/sound/oss/au1550_ac97.c | |||
@@ -1354,11 +1354,11 @@ au1550_ioctl(struct inode *inode, struct file *file, unsigned int cmd, | |||
1354 | ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); | 1354 | ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); |
1355 | 1355 | ||
1356 | #ifdef DEBUG | 1356 | #ifdef DEBUG |
1357 | for (count=0; count<sizeof(ioctl_str)/sizeof(ioctl_str[0]); count++) { | 1357 | for (count = 0; count < ARRAY_SIZE(ioctl_str); count++) { |
1358 | if (ioctl_str[count].cmd == cmd) | 1358 | if (ioctl_str[count].cmd == cmd) |
1359 | break; | 1359 | break; |
1360 | } | 1360 | } |
1361 | if (count < sizeof(ioctl_str) / sizeof(ioctl_str[0])) | 1361 | if (count < ARRAY_SIZE(ioctl_str)) |
1362 | pr_debug("ioctl %s, arg=0x%lxn", ioctl_str[count].str, arg); | 1362 | pr_debug("ioctl %s, arg=0x%lxn", ioctl_str[count].str, arg); |
1363 | else | 1363 | else |
1364 | pr_debug("ioctl 0x%x unknown, arg=0x%lx\n", cmd, arg); | 1364 | pr_debug("ioctl 0x%x unknown, arg=0x%lx\n", cmd, arg); |