diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-04-28 10:48:41 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-04-28 10:48:41 -0300 |
commit | 7445f5a6addde5bb3f20242677399e4790e5a4d9 (patch) | |
tree | 01bed9f12014ecf2a3e4ccb7d0738a6b828a5c50 | |
parent | 9f5fd95e9b91a458a32bd8687d3924d6d6e1ac0a (diff) | |
download | mediapointer-dvb-s2-7445f5a6addde5bb3f20242677399e4790e5a4d9.tar.gz mediapointer-dvb-s2-7445f5a6addde5bb3f20242677399e4790e5a4d9.tar.bz2 |
Bt8xx/bttv-cards.c: fix off-by-one errors
From: Adrian Bunk <bunk@stusta.de>
This patch fixes two off-by-one errors spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | linux/drivers/media/video/bt8xx/bttv-cards.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/bt8xx/bttv-cards.c b/linux/drivers/media/video/bt8xx/bttv-cards.c index cd45a2429..909084515 100644 --- a/linux/drivers/media/video/bt8xx/bttv-cards.c +++ b/linux/drivers/media/video/bt8xx/bttv-cards.c @@ -3014,13 +3014,13 @@ void __devinit bttv_idcard(struct bttv *btv) if (UNSET != audiomux[0]) { gpiobits = 0; - for (i = 0; i < 5; i++) { + for (i = 0; i < 4; i++) { bttv_tvcards[btv->c.type].gpiomux[i] = audiomux[i]; gpiobits |= audiomux[i]; } } else { gpiobits = audioall; - for (i = 0; i < 5; i++) { + for (i = 0; i < 4; i++) { bttv_tvcards[btv->c.type].gpiomux[i] = audioall; } } |