提交 dea8a39f 编写于 作者: M Mauro Carvalho Chehab

[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: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 b7c7a4be
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册