diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-01-29 02:12:41 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-18 15:15:02 +0100 |
commit | 805d92dfa627acad3d4a78966bc5e4f8183d48b3 (patch) | |
tree | 97b5b1f2ab7830327dcc1f0640ee8610da74344c | |
parent | V4L/DVB (7097): saa7134-dvb: add missing dvb_attach call (for tda10046_attach) (diff) | |
download | linux-805d92dfa627acad3d4a78966bc5e4f8183d48b3.tar.xz linux-805d92dfa627acad3d4a78966bc5e4f8183d48b3.zip |
V4L/DVB (7100): frontends/tda18271-common.c: fix off-by-one
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-- | drivers/media/dvb/frontends/tda18271-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/tda18271-common.c b/drivers/media/dvb/frontends/tda18271-common.c index cebb6b90b7e0..bca570990613 100644 --- a/drivers/media/dvb/frontends/tda18271-common.c +++ b/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) && |