From: Rob Bradford Date: Tue, 9 Oct 2012 17:44:31 +0000 (+0100) Subject: evdev: Avoid unintended case drop through X-Git-Tag: accepted/2.0alpha-wayland/20121115.181110~101 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b997e45e71d27bbe79ecc641ee3e6f1794ba446;p=profile%2Fivi%2Fweston.git evdev: Avoid unintended case drop through 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 --- diff --git a/src/evdev.c b/src/evdev.c index 8848736..cc5af91 100644 --- 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: