media: dvb-frontends/stv0367: update UCB readout condition logic
authorDaniel Scheller <d.scheller@gmx.net>
Sun, 25 Jun 2017 11:26:46 +0000 (08:26 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 25 Jun 2017 12:10:06 +0000 (09:10 -0300)
Since the other statistics are read when fe_status conditions are TRUE,
change the ucblocks readout logic to match this aswell.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/stv0367.c

index e7bed20e80f6b3202380e4e1188335ede098d9e0..1983c87d7d22cc0ecf7139521e474c817b4b6d60 100644 (file)
@@ -3081,13 +3081,11 @@ static int stv0367ddb_read_status(struct dvb_frontend *fe,
        else
                p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
 
-       /* stop if demod isn't locked */
-       if (!(*status & FE_HAS_LOCK)) {
+       /* read uncorrected blocks on FE_HAS_LOCK */
+       if (*status & FE_HAS_LOCK)
+               stv0367ddb_read_ucblocks(fe);
+       else
                p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
-               return ret;
-       }
-
-       stv0367ddb_read_ucblocks(fe);
 
        return 0;
 }