diff options
author | Andrew de Quincy <devnull@localhost> | 2003-06-21 13:52:08 +0000 |
---|---|---|
committer | Andrew de Quincy <devnull@localhost> | 2003-06-21 13:52:08 +0000 |
commit | e3fcc2f04b88285be9b9f480461348dee33cdd3c (patch) | |
tree | 5363520d7c4986ce6a5bc91e825c4d731814c049 /linux/drivers/media/dvb | |
parent | a2ab217dc2c7921ed6f823bd2cc759da59b9f342 (diff) | |
download | mediapointer-dvb-s2-e3fcc2f04b88285be9b9f480461348dee33cdd3c.tar.gz mediapointer-dvb-s2-e3fcc2f04b88285be9b9f480461348dee33cdd3c.tar.bz2 |
Better fix for errorchecking bug in read_ucblocks
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda10045h.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda10045h.c b/linux/drivers/media/dvb/frontends/tda10045h.c index 49043bca3..5901f745d 100644 --- a/linux/drivers/media/dvb/frontends/tda10045h.c +++ b/linux/drivers/media/dvb/frontends/tda10045h.c @@ -1028,6 +1028,7 @@ int tda10045h_read_ucblocks(struct dvb_i2c_bus *i2c, u32 * ucblocks) tmp = tda10045h_read_byte(i2c, TDA10045H_UNCOR); if (tmp < 0) return -EIO; + tmp &= 0x7f; while (counter++ < 5) { tda10045h_write_mask(i2c, TDA10045H_UNCOR, 0x80, 0); tda10045h_write_mask(i2c, TDA10045H_UNCOR, 0x80, 0); @@ -1040,9 +1041,8 @@ int tda10045h_read_ucblocks(struct dvb_i2c_bus *i2c, u32 * ucblocks) if ((tmp2 < tmp) || (tmp2 == 0)) break; } - tmp &= 0x7f; // FIXME: calculate this properly - + // done if (tmp != 0x7f) { *ucblocks = tmp; |