summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-12-16 01:23:14 +0100
committerPeter Wu <peter@lekensteyn.nl>2014-12-16 16:17:50 +0100
commit66c660bbb8790db90bd6d8b196315d914de354d0 (patch)
tree9caf88722a9a2c5a596d6e11843effd9d4188510
parent784052845cf9cf5f0edd71e8856e65c304e0e173 (diff)
downloadlinux-66c660bbb8790db90bd6d8b196315d914de354d0.tar.gz
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>
-rw-r--r--drivers/hid/hid-logitech-hidpp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c
index 2f420c0b6609..239badb6738f 100644
--- a/drivers/hid/hid-logitech-hidpp.c
+++ b/drivers/hid/hid-logitech-hidpp.c
@@ -800,6 +800,7 @@ static int wtp_raw_event(struct hid_device *hdev, u8 *data, int size)
input_event(wd->input, EV_KEY, BTN_RIGHT,
!!(data[1] & 0x02));
input_sync(wd->input);
+ return 0;
} else {
if (size < 21)
return 1;