diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-11-29 10:46:13 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 10:16:58 (GMT) |
commit | dea8a39fb569c23084c857ccdbf70a95ea3bf7dc (patch) | |
tree | 2aaf99ab4a4355f2b081c5574e9ac72714f6a1b6 /drivers/media/rc | |
parent | b7c7a4bed8d695933ae172031556de9de30ae598 (diff) | |
download | linux-fsl-qoriq-dea8a39fb569c23084c857ccdbf70a95ea3bf7dc.tar.xz |
[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/rc')
-rw-r--r-- | drivers/media/rc/rc-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 6bdd0d3..72be8a0 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); |