From: Daniel Scheller Date: Sun, 26 Nov 2017 13:00:08 +0000 (-0500) Subject: media: dvb-frontends/stv0910: remove unneeded symbol rate inquiry X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5dd70f5a6a2dacf501d8b16f714455d3a35b1b11;p=openwrt%2Fstaging%2Fblogic.git media: dvb-frontends/stv0910: remove unneeded symbol rate inquiry 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 Cc: Ralph Metzler Signed-off-by: Daniel Scheller Tested-by: Richard Scobie Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb-frontends/stv0910.c b/drivers/media/dvb-frontends/stv0910.c index 55cddd01f779..681349a5aea8 100644 --- a/drivers/media/dvb-frontends/stv0910.c +++ b/drivers/media/dvb-frontends/stv0910.c @@ -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;