media: dvb-frontends/stv0910: remove unneeded symbol rate inquiry
authorDaniel Scheller <d.scheller@gmx.net>
Sun, 26 Nov 2017 13:00:08 +0000 (08:00 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Dec 2017 13:37:34 +0000 (08:37 -0500)
tracking_optimization() doesn't make use of the symbol rate reported by
the demodulator, so remove the unneeded inquiry and the now unneeded
variable.

Reported-by: Richard Scobie <rascobie@slingshot.co.nz>
Cc: Ralph Metzler <rjkm@metzlerbros.de>
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Tested-by: Richard Scobie <rascobie@slingshot.co.nz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/stv0910.c

index 55cddd0..681349a 100644 (file)
@@ -533,10 +533,8 @@ static int get_signal_parameters(struct stv *state)
 
 static int tracking_optimization(struct stv *state)
 {
-       u32 symbol_rate = 0;
        u8 tmp;
 
-       get_cur_symbol_rate(state, &symbol_rate);
        read_reg(state, RSTV0910_P2_DMDCFGMD + state->regoff, &tmp);
        tmp &= ~0xC0;