[media] [V3] stv090x: variable 'no_signal' set but not used
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 18:11:15 +0000 (15:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 18:28:17 +0000 (15:28 -0300)
Remove variable and ignore return value of stv090x_chk_signal().

Tested by compilation only.

[mchehab@redhat.com: instead of reverting and applying V3,
 applied just the diff patch, for the sake of a cleaner history]
Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Reviewed-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stv090x.c

index d229dba42bef73599ca0e790437e553dae3d04eb..ea86a5603e5756106a342a18668d3b8889ebdd1e 100644 (file)
@@ -3411,9 +3411,10 @@ static enum stv090x_signal_state stv090x_algo(struct stv090x_state *state)
                        /* Reset the packet Error counter2 */
                        if (STV090x_WRITE_DEMOD(state, ERRCTRL2, 0xc1) < 0)
                                goto err;
-               } else
+               } else {
                        signal_state = STV090x_NODATA;
-
+                       stv090x_chk_signal(state);
+               }
        }
        return signal_state;