projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcb6f22
)
touchpad: mark two switch fallthroughs with comments
author
Peter Hutterer
<peter.hutterer@who-t.net>
Tue, 3 Feb 2015 23:11:46 +0000
(09:11 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Tue, 3 Feb 2015 23:11:46 +0000
(09:11 +1000)
Coverity pointed these out, they're false positives but mark them with
comments to make it obvious to the reader.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad-buttons.c
patch
|
blob
|
history
diff --git
a/src/evdev-mt-touchpad-buttons.c
b/src/evdev-mt-touchpad-buttons.c
index
ca7495f
..
9dbb513
100644
(file)
--- a/
src/evdev-mt-touchpad-buttons.c
+++ b/
src/evdev-mt-touchpad-buttons.c
@@
-823,6
+823,7
@@
tp_post_clickpadbutton_buttons(struct tp_dispatch *tp, uint64_t time)
break;
case BUTTON_EVENT_IN_TOP_L:
is_top = 1;
+ /* fallthrough */
case BUTTON_EVENT_IN_BOTTOM_L:
button |= LEFT;
break;
@@
-832,6
+833,7
@@
tp_post_clickpadbutton_buttons(struct tp_dispatch *tp, uint64_t time)
break;
case BUTTON_EVENT_IN_TOP_R:
is_top = 1;
+ /* fallthrough */
case BUTTON_EVENT_IN_BOTTOM_R:
button |= RIGHT;
break;