summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/stradis.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/stradis.c')
-rw-r--r--linux/drivers/media/video/stradis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/stradis.c b/linux/drivers/media/video/stradis.c
index 22289cf95..6efcaeac0 100644
--- a/linux/drivers/media/video/stradis.c
+++ b/linux/drivers/media/video/stradis.c
@@ -1326,7 +1326,7 @@ static int saa_ioctl(struct inode *inode, struct file *file,
u32 format;
if (copy_from_user(&p, arg, sizeof(p)))
return -EFAULT;
- if (p.palette < sizeof(palette2fmt) / sizeof(u32)) {
+ if (p.palette < ARRAY_SIZE(palette2fmt)) {
format = palette2fmt[p.palette];
saa->win.color_fmt = format;
saawrite(format | 0x60,