浏览代码

[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>
Markus Elfring 9 年之前
父节点
当前提交
9d45d5fbeb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/media/rc/redrat3.c

+ 1 - 1
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();