aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-08-22 09:34:05 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-08-23 09:20:24 +1000
commita92be3bad6ac60afec5c9945aba749a5dbaf9d16 (patch)
tree5086dda3205e8fb00093718b63309eeb347652c1
parentd15b45350efe0a21c85faa1a2832909b40cfe502 (diff)
downloadexternal_evtest-a92be3bad6ac60afec5c9945aba749a5dbaf9d16.tar.gz
external_evtest-a92be3bad6ac60afec5c9945aba749a5dbaf9d16.tar.bz2
external_evtest-a92be3bad6ac60afec5c9945aba749a5dbaf9d16.zip
Clarify a condition
EV_SYN is 0, so !type means type == EV_SYN Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
-rw-r--r--evtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/evtest.c b/evtest.c
index ecc653c..9639c22 100644
--- a/evtest.c
+++ b/evtest.c
@@ -790,7 +790,7 @@ static int print_device_info(int fd)
for (type = 0; type < EV_MAX; type++) {
if (test_bit(type, bit[0]) && type != EV_REP) {
printf(" Event type %d (%s)\n", type, events[type] ? events[type] : "?");
- if (!type) continue;
+ if (type == EV_SYN) continue;
ioctl(fd, EVIOCGBIT(type, KEY_MAX), bit[type]);
for (code = 0; code < KEY_MAX; code++)
if (test_bit(code, bit[type])) {