diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-03-29 07:42:30 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-27 14:45:12 -0400 |
commit | 53c4e9551c2930767fcdaa54323616c32ed6e9c6 (patch) | |
tree | 76ae6b22c77f81e4f36b29ef79cfbd7ca6367ece /drivers/media/video/ir-kbd-i2c.c | |
parent | 5b9c4e6dbb3204568d4c058af6e34772393ada19 (diff) |
V4L/DVB (5479): Use ARRAY_SIZE instead of a magic number
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ir-kbd-i2c.c')
-rw-r--r-- | drivers/media/video/ir-kbd-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index 210582d420f8..ed92b6f7187a 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c | |||
@@ -173,7 +173,7 @@ static int get_key_pinnacle(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw, | |||
173 | return -EIO; | 173 | return -EIO; |
174 | } | 174 | } |
175 | 175 | ||
176 | for (start = 0; start<4; start++) { | 176 | for (start = 0; start < ARRAY_SIZE(b); start++) { |
177 | if (b[start] == marker) { | 177 | if (b[start] == marker) { |
178 | code=b[(start+parity_offset+1)%4]; | 178 | code=b[(start+parity_offset+1)%4]; |
179 | parity=b[(start+parity_offset)%4]; | 179 | parity=b[(start+parity_offset)%4]; |