Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68a26aec authored by Adrian Bunk's avatar Adrian Bunk Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (3964): Bt8xx/bttv-cards.c: fix off-by-one errors



This patch fixes two off-by-one errors spotted by the Coverity checker.

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 1095136d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2991,13 +2991,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;
		}
	}