Skip to contentSkip to conversation

media: dvb-frontends: drx39xyj: Remove unused variable in drx39xxj_set_frontend

PATCH New Lee Yongjun 1 participant 1 message Jan 20 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: dvb-frontends: drx39xyj: Remove unused variable in drx39xxj_set_frontend

The variable 'i' in drx39xxj_set_frontend() is declared within a DJH_DEBUG ifdef block but is never used.

Detected by Cppcheck static analysis:
drivers/media/dvb-frontends/drx39xyj/drxj.c:12068:6: style: Unused variable: i [unusedVariable]

Remove the unused variable and the surrounding ifdef block to clean up the code.

---
 drivers/media/dvb-frontends/drx39xyj/drxj.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/media/dvb-frontends/drx39xyj/drxj.c +0 -3
index 428b31e60874..071561d5561c 100644
@@ -12064,9 +12064,6 @@ static int drx39xxj_read_ucblocks(struct dvb_frontend *fe, u32 *ucb)
 
 static int drx39xxj_set_frontend(struct dvb_frontend *fe)
 {
-#ifdef DJH_DEBUG
-	int i;
-#endif
 	struct dtv_frontend_properties *p = &fe->dtv_property_cache;
 	struct drx39xxj_state *state = fe->demodulator_priv;
 	struct drx_demod_instance *demod = state->demod;
Signature · 1 line
2.34.1