diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-06 22:59:18 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-06 22:59:18 -0200 |
commit | f904628e6435f1e218b065888a4f90d7709bee7b (patch) | |
tree | 9f2864fbfc7ae5eae9955a1c76055ead76a3dbdb /linux/drivers/media/dvb/ttpci | |
parent | 1a5af409063c762b8d19699c214a1dce5b7a0360 (diff) | |
download | mediapointer-dvb-s2-f904628e6435f1e218b065888a4f90d7709bee7b.tar.gz mediapointer-dvb-s2-f904628e6435f1e218b065888a4f90d7709bee7b.tar.bz2 |
DVB: Use ARRAY_SIZE macro when appropriate
From: Ahmed S. Darwish <darwish.07@gmail.com>
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: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/ttpci')
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_ir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_ir.c b/linux/drivers/media/dvb/ttpci/av7110_ir.c index 344ec1243..54460acab 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_ir.c +++ b/linux/drivers/media/dvb/ttpci/av7110_ir.c @@ -4,6 +4,7 @@ #include <linux/moduleparam.h> #include <linux/input.h> #include <linux/proc_fs.h> +#include <linux/kernel.h> #include <asm/bitops.h> #include "av7110.h" @@ -218,7 +219,7 @@ int __devinit av7110_ir_init(struct av7110 *av7110) static struct proc_dir_entry *e; int err; - if (av_cnt >= sizeof av_list/sizeof av_list[0]) + if (av_cnt >= ARRAY_SIZE(av_list)) return -ENOSPC; av7110_setup_irc_config(av7110, 0x0001); |