diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-10-25 14:52:26 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-11-11 15:50:36 +1000 |
commit | c1b89bda12c1897120bace941625cfa27e547458 (patch) | |
tree | fef61a7ba9b2204efadde7cd7be349982b43b5e4 /src/evdev.c | |
parent | 907b7cad3fd892ca3349cd18e9ccdc5659027b40 (diff) |
Remove duplicate line
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.c')
-rw-r--r-- | src/evdev.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/evdev.c b/src/evdev.c index d32427c..9e3cc4e 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1006,10 +1006,9 @@ EvdevReadInput(InputInfoPtr pInfo) len = mtdev_get(pEvdev->mtdev, pInfo->fd, ev, NUM_EVENTS) * sizeof(struct input_event); else - len = read(pInfo->fd, &ev, sizeof(ev)); -#else - len = read(pInfo->fd, &ev, sizeof(ev)); #endif + len = read(pInfo->fd, &ev, sizeof(ev)); + if (len <= 0) { if (errno == ENODEV) /* May happen after resume */ |