From: Markus Elfring Date: Thu, 13 Oct 2016 12:17:43 +0000 (-0300) Subject: [media] RedRat3: Delete an unnecessary variable initialisation in redrat3_init_rc_dev() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9d45d5fbeb4672648926c8fd2c1f2c08105ee7c3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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();