diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-12-15 19:50:16 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-12-19 05:45:36 -0500 |
commit | 8abd820503e4befb28d0722f8712bdbec57e63a8 (patch) | |
tree | 2198bab83490debe646664feb2ff503a83420ad7 /drivers/hid | |
parent | 060c998251728a7d183092da5e8a318398e56e76 (diff) |
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>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-logitech-hidpp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c index dd3c21b52de3..66cb1b59b674 100644 --- a/drivers/hid/hid-logitech-hidpp.c +++ b/drivers/hid/hid-logitech-hidpp.c | |||
@@ -805,6 +805,7 @@ static int wtp_raw_event(struct hid_device *hdev, u8 *data, int size) | |||
805 | input_event(wd->input, EV_KEY, BTN_RIGHT, | 805 | input_event(wd->input, EV_KEY, BTN_RIGHT, |
806 | !!(data[1] & 0x02)); | 806 | !!(data[1] & 0x02)); |
807 | input_sync(wd->input); | 807 | input_sync(wd->input); |
808 | return 0; | ||
808 | } else { | 809 | } else { |
809 | if (size < 21) | 810 | if (size < 21) |
810 | return 1; | 811 | return 1; |