forked from Minki/linux
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>
This commit is contained in:
parent
0e8f4cc5c8
commit
805d92dfa6
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user