diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-03-23 15:00:47 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-04-09 13:00:59 +0200 |
commit | 7030a96bd99032c4565889082a8ab67db3b62180 (patch) | |
tree | 9c9adb3d748159b891ca911ef22aad9a7bb3a199 /drivers/media/dvb-frontends | |
parent | a2e2c1b86209f056d1630983749baf0cd92af5ee (diff) |
media: dvb-frontends: Remove redundant error check on variable ret
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@canonical.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r-- | drivers/media/dvb-frontends/lgdt3306a.c | 3 |
1 files changed, 0 insertions, 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; |