[PATCH evtest 6/9] Clarify a condition
Peter Hutterer
peter.hutterer at who-t.net
Wed Aug 21 20:46:51 PDT 2013
EV_SYN is 0, so !type means type == EV_SYN
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
evtest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/evtest.c b/evtest.c
index d14f7c4..aff972f 100644
--- a/evtest.c
+++ b/evtest.c
@@ -788,7 +788,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])) {
--
1.8.2.1
More information about the Input-tools
mailing list