diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-07-05 15:04:27 -0700 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2007-07-05 15:04:27 -0700 |
commit | 067e32311ef23bc9b26a4b6c8add961bcec34ded (patch) | |
tree | 4e2ed35a4b51ca04f995be055ffaeecf122b94dd /linux/drivers/media/video/stradis.c | |
parent | c5342d38eaad6fbf510c2c873116638db8e1b2a0 (diff) | |
download | mediapointer-dvb-s2-067e32311ef23bc9b26a4b6c8add961bcec34ded.tar.gz mediapointer-dvb-s2-067e32311ef23bc9b26a4b6c8add961bcec34ded.tar.bz2 |
stradis: use ARRAY_SIZE
From: Trent Piepho <xyzzy@speakeasy.org>
sizeof(palette2fmt) / sizeof(u32) => ARRAY_SIZE(palette2fmt)
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/drivers/media/video/stradis.c')
-rw-r--r-- | linux/drivers/media/video/stradis.c | 2 |
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, |