projects
/
profile
/
ivi
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
592c07a
)
evdev: Avoid unintended case drop through
author
Rob Bradford
<rob@linux.intel.com>
Tue, 9 Oct 2012 17:44:31 +0000
(18:44 +0100)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 10 Oct 2012 02:50:42 +0000
(22:50 -0400)
e->code is in the same range for ABS_ and for REL_. As the code currently
stands and for the current values in Linux's input.h there is no risk of a
problem. However just in case it would be wise to break after evaluating the
relative events.
Signed-off-by: Rob Bradford <rob@linux.intel.com>
src/evdev.c
patch
|
blob
|
history
diff --git
a/src/evdev.c
b/src/evdev.c
index
8848736
..
cc5af91
100644
(file)
--- a/
src/evdev.c
+++ b/
src/evdev.c
@@
-195,6
+195,7
@@
is_motion_event(struct input_event *e)
case REL_Y:
return 1;
}
+ break;
case EV_ABS:
switch (e->code) {
case ABS_X: