Skip to content

Commit

Permalink
[media] RedRat3: Delete an unnecessary variable initialisation in red…
Browse files Browse the repository at this point in the history
…rat3_init_rc_dev()

The local variable "ret" will be set to an appropriate value a bit later.
Thus omit the explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
elfring authored and mchehab committed Nov 18, 2016
1 parent 7aa20af commit 9d45d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/rc/redrat3.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ static struct rc_dev *redrat3_init_rc_dev(struct redrat3_dev *rr3)
{
struct device *dev = rr3->dev;
struct rc_dev *rc;
int ret = -ENODEV;
int ret;
u16 prod = le16_to_cpu(rr3->udev->descriptor.idProduct);

rc = rc_allocate_device();
Expand Down

0 comments on commit 9d45d5f

Please sign in to comment.