aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-11-29 08:46:13 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-11-29 08:46:13 -0200
commit6880444e3aed4c8c52d502f70c4275a63edba601 (patch)
tree672b7b648ff91df349e76a68d0ee3415e857b32b /drivers/media
parenta0c1695489580e6872e0b7c50cc08eba4fab0bb0 (diff)
[media] rc-core: Initialize return value to zero
At ir_setkeycode, if INPUT_KEYMAP_BY_INDEX is used, the routine may return an invalid value if not error. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/rc/rc-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index 6bdd0d3c02e8..72be8a02118c 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -325,7 +325,7 @@ static int ir_setkeycode(struct input_dev *idev,
struct rc_map *rc_map = &rdev->rc_map;
unsigned int index;
unsigned int scancode;
- int retval;
+ int retval = 0;
unsigned long flags;
spin_lock_irqsave(&rc_map->lock, flags);

Privacy Policy