[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210323140047.347955-1-colin.king@canonical.com>
Date: Tue, 23 Mar 2021 14:00:47 +0000
From: Colin King <colin.king@...onical.com>
To: Mauro Carvalho Chehab <mchehab@...nel.org>,
Sean Young <sean@...s.org>,
"Gustavo A . R . Silva" <gustavoars@...nel.org>,
"Daniel W . S . Almeida" <dwlsalmeida@...il.com>,
Brad Love <brad@...tdimension.cc>, linux-media@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH][next] media: dvb-frontends: Remove redundant error check on variable ret
From: Colin Ian King <colin.king@...onical.com>
An earlier commit removed a call to lgdt3306a_spectral_inversion and
omitted to remove the error return check. The check on ret is now
redundant and can be removed.
Addresses-Coverity: ("Logically dead code")
Fixes: d4a3fa6652e3 ("media: dvb-frontends: lgdt3306a.c: remove dead code")
Signed-off-by: Colin Ian King <colin.king@...onical.com>
---
drivers/media/dvb-frontends/lgdt3306a.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/media/dvb-frontends/lgdt3306a.c b/drivers/media/dvb-frontends/lgdt3306a.c
index 22d484487695..136b76cb4807 100644
--- a/drivers/media/dvb-frontends/lgdt3306a.c
+++ b/drivers/media/dvb-frontends/lgdt3306a.c
@@ -1017,9 +1017,6 @@ static int lgdt3306a_set_parameters(struct dvb_frontend *fe)
/* spectral_inversion defaults already set for VSB and QAM */
- if (lg_chkerr(ret))
- goto fail;
-
ret = lgdt3306a_mpeg_mode(state, state->cfg->mpeg_mode);
if (lg_chkerr(ret))
goto fail;
--
2.30.2
Powered by blists - more mailing lists