[media] RedRat3: Delete an unnecessary variable initialisation in redrat3_init_rc_dev()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 13 Oct 2016 12:17:43 +0000 (09:17 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 18 Nov 2016 12:52:57 +0000 (10:52 -0200)
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>
drivers/media/rc/redrat3.c

index dc8b88a256f244cb16c53bb72412a48384d1ff88..689df034dcfee6d3677be182daa9db8ad25b58f3 100644 (file)
@@ -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();