diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-08-22 09:34:05 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-08-23 09:20:24 +1000 |
commit | a92be3bad6ac60afec5c9945aba749a5dbaf9d16 (patch) | |
tree | 5086dda3205e8fb00093718b63309eeb347652c1 | |
parent | d15b45350efe0a21c85faa1a2832909b40cfe502 (diff) | |
download | external_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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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])) { |