mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +08:00
HID: logitech-hidpp: avoid unintended fall-through
Add a return to avoid a fall-through. Introduced in commit
57ac86cf52
("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>
This commit is contained in:
parent
060c998251
commit
8abd820503
@ -805,6 +805,7 @@ static int wtp_raw_event(struct hid_device *hdev, u8 *data, int size)
|
|||||||
input_event(wd->input, EV_KEY, BTN_RIGHT,
|
input_event(wd->input, EV_KEY, BTN_RIGHT,
|
||||||
!!(data[1] & 0x02));
|
!!(data[1] & 0x02));
|
||||||
input_sync(wd->input);
|
input_sync(wd->input);
|
||||||
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
if (size < 21)
|
if (size < 21)
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user