Skip to content

Commit

Permalink
media: drxj: remove redundant assignment to variable rc
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sean Young <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
Colin Ian King authored and mchehab committed Oct 7, 2019
1 parent 94ddd60 commit 767f22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/drx39xyj/drxj.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 767f22a

Please sign in to comment.