aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-05-08 00:00:40 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-05-12 17:33:31 +0200
commit43c4dc3f59e75f3a8b726c4c90cb894c3780e91c (patch)
tree696742ddaff4106dea4b6abf6db3ac97b799f848 /drivers/media/dvb-frontends
parentmedia: mantis_dvb: remove redundant initialization to variable result (diff)
downloadlinux-dev-43c4dc3f59e75f3a8b726c4c90cb894c3780e91c.tar.xz
linux-dev-43c4dc3f59e75f3a8b726c4c90cb894c3780e91c.zip
media: dvb-frontends: remove redundant initialization of variable status
The variable status is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") 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/drxk_hard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/drxk_hard.c b/drivers/media/dvb-frontends/drxk_hard.c
index 0a4875b391d9..7e8e5c308d1c 100644
--- a/drivers/media/dvb-frontends/drxk_hard.c
+++ b/drivers/media/dvb-frontends/drxk_hard.c
@@ -1093,7 +1093,7 @@ static int init_hi(struct drxk_state *state)
static int mpegts_configure_pins(struct drxk_state *state, bool mpeg_enable)
{
- int status = -1;
+ int status;
u16 sio_pdr_mclk_cfg = 0;
u16 sio_pdr_mdx_cfg = 0;
u16 err_cfg = 0;