Skip to contentSkip to conversation

media: tda18271: remove redundant assignment to variable bcal

PATCH New Colin Ian King 1 participant 1 message Feb 5, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: tda18271: remove redundant assignment to variable bcal

The variable bcal is being initialized with a value that is never read, it is being re-assigned in both paths of an if statement near the end of the function. The initialization is redundant and can be removed.

Cleans up clang scan build warning:
drivers/media/tuners/tda18271-fe.c:473:2: warning: Value stored to 'bcal' is never read [deadcode.DeadStores]

---
 drivers/media/tuners/tda18271-fe.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/tuners/tda18271-fe.c +0 -1
index f0371d004b36..a7e721baaa99 100644
@@ -470,7 +470,6 @@ static int tda18271_powerscan(struct dvb_frontend *fe,
 	/* algorithm initialization */
 	sgn = 1;
 	*freq_out = *freq_in;
-	bcal = 0;
 	count = 0;
 	wait = false;
 
Signature · 1 line
2.39.2