Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dea8a39f authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[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: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent b7c7a4be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);