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 <jun85566@gmail.com>
---
drivers/media/dvb-frontends/drx39xyj/drxj.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/media/dvb-frontends/drx39xyj/drxj.c b/drivers/media/dvb-frontends/drx39xyj/drxj.c
index 428b31e60874..071561d5561c 100644
--- a/drivers/media/dvb-frontends/drx39xyj/drxj.c
+++ b/drivers/media/dvb-frontends/drx39xyj/drxj.c
@@ -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;
--
2.34.1