summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/dvb/frontends/tda10045h.c3
1 files changed, 2 insertions, 1 deletions
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