projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aa20af
)
[media] RedRat3: Delete an unnecessary variable initialisation in redrat3_init_rc_dev()
author
Markus Elfring
<
[email protected]
>
Thu, 13 Oct 2016 12:17:43 +0000
(09:17 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/rc/redrat3.c
patch
|
blob
|
history
diff --git
a/drivers/media/rc/redrat3.c
b/drivers/media/rc/redrat3.c
index dc8b88a256f244cb16c53bb72412a48384d1ff88..689df034dcfee6d3677be182daa9db8ad25b58f3 100644
(file)
--- 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();