diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-28 22:12:41 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-28 22:12:41 +0000 |
commit | 246715c1c023301500e19fa1fcb3ffdd67937963 (patch) | |
tree | 4c8bc9ebcecabd2446eec5fd250649ed4046e53e | |
parent | 2658c872a9aa48c0226222b3d55d8c7dfd5b8484 (diff) | |
download | mediapointer-dvb-s2-246715c1c023301500e19fa1fcb3ffdd67937963.tar.gz mediapointer-dvb-s2-246715c1c023301500e19fa1fcb3ffdd67937963.tar.bz2 |
frontends/tda18271-common.c: fix off-by-one
From: Adrian Bunk <bunk@kernel.org>
This patch fixes an off-by-one error spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda18271-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda18271-common.c b/linux/drivers/media/dvb/frontends/tda18271-common.c index 6dfabc5a5..acb9dd4ee 100644 --- a/linux/drivers/media/dvb/frontends/tda18271-common.c +++ b/linux/drivers/media/dvb/frontends/tda18271-common.c @@ -171,7 +171,7 @@ int tda18271_read_extended(struct dvb_frontend *fe) if (ret != 2) tda_err("ERROR: i2c_transfer returned: %d\n", ret); - for (i = 0; i <= TDA18271_NUM_REGS; i++) { + for (i = 0; i < TDA18271_NUM_REGS; i++) { /* don't update write-only registers */ if ((i != R_EB9) && (i != R_EB16) && |