From: Lee Yongjun <jun85566@gmail.com>
To: mchehab@kernel.org
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
hverkuil+cisco@kernel.org, Lee Yongjun <jun85566@gmail.com>
Subject: [PATCH] media: dvb-frontends: drx39xyj: Remove unused variable in drx39xxj_set_frontend
Date: Tue, 20 Jan 2026 19:13:39 +0900 [thread overview]
Message-ID: <20260120101339.5651-1-jun85566@gmail.com> (raw)
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
reply other threads:[~2026-01-20 10:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260120101339.5651-1-jun85566@gmail.com \
--to=jun85566@gmail.com \
--cc=hverkuil+cisco@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox