diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-03-29 08:42:30 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-03-29 08:42:30 -0300 |
commit | 396451756f52f81a20ee9099408b2b71192dae6f (patch) | |
tree | d45762b2148e1edb8e129d282bd35528107281d9 /linux/drivers/media/video/ir-kbd-i2c.c | |
parent | 796a8651acd1759db5223b03bdbfe43f94d7c11e (diff) | |
download | mediapointer-dvb-s2-396451756f52f81a20ee9099408b2b71192dae6f.tar.gz mediapointer-dvb-s2-396451756f52f81a20ee9099408b2b71192dae6f.tar.bz2 |
Use ARRAY_SIZE instead of a magic number
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/ir-kbd-i2c.c')
-rw-r--r-- | linux/drivers/media/video/ir-kbd-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ir-kbd-i2c.c b/linux/drivers/media/video/ir-kbd-i2c.c index d20bad700..8d0c49782 100644 --- a/linux/drivers/media/video/ir-kbd-i2c.c +++ b/linux/drivers/media/video/ir-kbd-i2c.c @@ -174,7 +174,7 @@ static int get_key_pinnacle(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw, return -EIO; } - for (start = 0; start<4; start++) { + for (start = 0; start < ARRAY_SIZE(b); start++) { if (b[start] == marker) { code=b[(start+parity_offset+1)%4]; parity=b[(start+parity_offset)%4]; |