diff options
author | Andrew de Quincy <devnull@localhost> | 2003-06-21 13:50:01 +0000 |
---|---|---|
committer | Andrew de Quincy <devnull@localhost> | 2003-06-21 13:50:01 +0000 |
commit | a2ab217dc2c7921ed6f823bd2cc759da59b9f342 (patch) | |
tree | 08277cd871ddb8389532e8940440a77903004b9b /linux/drivers | |
parent | 745764ce8bb3c0808cdb67a9bb91dcd26641db5e (diff) | |
download | mediapointer-dvb-s2-a2ab217dc2c7921ed6f823bd2cc759da59b9f342.tar.gz mediapointer-dvb-s2-a2ab217dc2c7921ed6f823bd2cc759da59b9f342.tar.bz2 |
Small errorchecking bug fixed
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda10045h.c | 3 |
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 |