Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

HID: logitech-hidpp: avoid unintended fall-through

Add a return to avoid a fall-through. Introduced in commit
57ac86cf52e903d9e3e0f12b34c814cce6b65550 ("HID: logitech-hidpp: add
support of the first Logitech Wireless Touchpad").

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Peter Wu and committed by
Jiri Kosina
8abd8205 060c9982

+1
+1
drivers/hid/hid-logitech-hidpp.c
··· 805 805 input_event(wd->input, EV_KEY, BTN_RIGHT, 806 806 !!(data[1] & 0x02)); 807 807 input_sync(wd->input); 808 + return 0; 808 809 } else { 809 810 if (size < 21) 810 811 return 1;