Skip to contentSkip to conversation

tuners: mxl5005s: remove useless variable assignments

PATCH New Gustavo A. R. Silva 1 participant 1 message Jun 22, 2017 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tuners: mxl5005s: remove useless variable assignments

Values assigned to variables Fmax and Fmin at lines 2740 and 2741 are overwritten at lines 2754 and 2755 before they can be used. This makes such variable assignments useless.

Addresses-Coverity-ID: 1226952
Addresses-Coverity-ID: 1226953

---
 drivers/media/tuners/mxl5005s.c | 2 --
 1 file changed, 2 deletions(-)
drivers/media/tuners/mxl5005s.c +0 -2
index 353744f..dd59c2c 100644
@@ -2737,8 +2737,6 @@ static u16 MXL_TuneRF(struct dvb_frontend *fe, u32 RF_Freq)
 		status += MXL_ControlWrite(fe, TG_LO_DIVVAL,	0x0);
 		status += MXL_ControlWrite(fe, TG_LO_SELVAL,	0x7);
 		divider_val = 2 ;
-		Fmax = FmaxBin ;
-		Fmin = FminBin ;
 	}
 
 	/* TG_DIV_VAL */
Signature · 1 line
2.5.0