summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2016-10-13 15:17:43 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-11-18 15:52:57 +0300
commit9d45d5fbeb4672648926c8fd2c1f2c08105ee7c3 (patch)
tree15fa3d29aeded2d1f75710ea687862d987bcfbf0
parent7aa20afea649fa1e3cb81bf40c25ddf53cc1328f (diff)
downloadlinux-9d45d5fbeb4672648926c8fd2c1f2c08105ee7c3.tar.xz
[media] RedRat3: Delete an unnecessary variable initialisation in redrat3_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 <elfring@users.sourceforge.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r--drivers/media/rc/redrat3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/redrat3.c b/drivers/media/rc/redrat3.c
index dc8b88a256f2..689df034dcfe 100644
--- a/drivers/media/rc/redrat3.c
+++ b/drivers/media/rc/redrat3.c
@@ -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();