Skip to content

Commit 670f7ef

Browse files
Colin Ian Kingmchehab
authored andcommitted
media: radio: remove redundant assignment to variable retval
The variable retval 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: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 04320b3 commit 670f7ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/radio/si4713/radio-usb-si4713.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ static int usb_si4713_probe(struct usb_interface *intf,
414414
struct si4713_usb_device *radio;
415415
struct i2c_adapter *adapter;
416416
struct v4l2_subdev *sd;
417-
int retval = -ENOMEM;
417+
int retval;
418418

419419
dev_info(&intf->dev, "Si4713 development board discovered: (%04X:%04X)\n",
420420
id->idVendor, id->idProduct);

0 commit comments

Comments
 (0)