From 1d0ceae4a19d318b443277ea6ac891a2e6e8fdc3 Mon Sep 17 00:00:00 2001 From: Antti Palosaari Date: Wed, 3 Sep 2014 23:07:39 -0300 Subject: [PATCH] [media] af9033: wrap DVBv3 UCB to DVBv5 UCB stats Remove 'duplicate' DVBv3 read UCB implementation and return value, calculated already for DVBv5 statistics. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- drivers/media/dvb-frontends/af9033.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/media/dvb-frontends/af9033.c b/drivers/media/dvb-frontends/af9033.c index b6b90e61ed83..673d60ef9654 100644 --- a/drivers/media/dvb-frontends/af9033.c +++ b/drivers/media/dvb-frontends/af9033.c @@ -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; } -- 2.34.1