media: dvb-frontends: drx39xyj: Remove unused variable in drx39xxj_set_frontend
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.
Signed-off-by Lee Yongjun <[email protected]>
--- drivers/media/dvb-frontends/drx39xyj/drxj.c | 3 --- 1 file changed, 3 deletions(-)
drivers/media/dvb-frontends/drx39xyj/drxj.c +0 -3
@@ -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