[media] af9033: wrap DVBv3 UCB to DVBv5 UCB stats
authorAntti Palosaari <crope@iki.fi>
Thu, 4 Sep 2014 02:07:39 +0000 (23:07 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 22:46:43 +0000 (19:46 -0300)
Remove 'duplicate' DVBv3 read UCB implementation and return value,
calculated already for DVBv5 statistics.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/af9033.c

index b6b90e61ed83cca3f7099da18d9b82df6db41c52..673d60ef965496021c78c03361fd1df6ea8abb21 100644 (file)
@@ -932,14 +932,8 @@ static int af9033_read_ber(struct dvb_frontend *fe, u32 *ber)
 static int af9033_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
 {
        struct af9033_dev *dev = fe->demodulator_priv;
-       int ret;
-
-       ret = af9033_update_ch_stat(dev);
-       if (ret < 0)
-               return ret;
-
-       *ucblocks = dev->ucb;
 
+       *ucblocks = dev->error_block_count;
        return 0;
 }