From a2ab217dc2c7921ed6f823bd2cc759da59b9f342 Mon Sep 17 00:00:00 2001 From: Andrew de Quincy Date: Sat, 21 Jun 2003 13:50:01 +0000 Subject: Small errorchecking bug fixed --- linux/drivers/media/dvb/frontends/tda10045h.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linux/drivers') diff --git a/linux/drivers/media/dvb/frontends/tda10045h.c b/linux/drivers/media/dvb/frontends/tda10045h.c index 2ae1d0fff..49043bca3 100644 --- a/linux/drivers/media/dvb/frontends/tda10045h.c +++ b/linux/drivers/media/dvb/frontends/tda10045h.c @@ -1025,7 +1025,7 @@ int tda10045h_read_ucblocks(struct dvb_i2c_bus *i2c, u32 * ucblocks) // read the UCBLOCKS and reset counter = 0; - tmp = tda10045h_read_byte(i2c, TDA10045H_UNCOR) & 0x7f; + tmp = tda10045h_read_byte(i2c, TDA10045H_UNCOR); if (tmp < 0) return -EIO; while (counter++ < 5) { @@ -1040,6 +1040,7 @@ int tda10045h_read_ucblocks(struct dvb_i2c_bus *i2c, u32 * ucblocks) if ((tmp2 < tmp) || (tmp2 == 0)) break; } + tmp &= 0x7f; // FIXME: calculate this properly // done -- cgit v1.2.3