summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/drx39xyj
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-08-01 19:09:58 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-10-07 13:46:01 +0300
commit767f22ac54b696b2b40f87cad08f877fe3ec2264 (patch)
tree5840593e3267a369612bfe3cf712d66e765581dd /drivers/media/dvb-frontends/drx39xyj
parent94ddd60d9c39bf06e63a808e784bc4eaafc852d7 (diff)
downloadlinux-767f22ac54b696b2b40f87cad08f877fe3ec2264.tar.xz
media: drxj: remove redundant assignment to variable rc
The variable rc 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+samsung@kernel.org>
Diffstat (limited to 'drivers/media/dvb-frontends/drx39xyj')
-rw-r--r--drivers/media/dvb-frontends/drx39xyj/drxj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/drx39xyj/drxj.c b/drivers/media/dvb-frontends/drx39xyj/drxj.c
index 2f5af4813a74..ac7be872f460 100644
--- a/drivers/media/dvb-frontends/drx39xyj/drxj.c
+++ b/drivers/media/dvb-frontends/drx39xyj/drxj.c
@@ -4201,7 +4201,7 @@ int drxj_dap_scu_atomic_read_reg16(struct i2c_device_addr *dev_addr,
u16 *data, u32 flags)
{
u8 buf[2] = { 0 };
- int rc = -EIO;
+ int rc;
u16 word = 0;
if (!data)