aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-10-25 14:52:26 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-11-11 15:50:36 +1000
commitc1b89bda12c1897120bace941625cfa27e547458 (patch)
treefef61a7ba9b2204efadde7cd7be349982b43b5e4
parentEnsure touchpad events are always processed with MT (diff)
downloadxf86-input-evdev-c1b89bda12c1897120bace941625cfa27e547458.tar.gz
xf86-input-evdev-c1b89bda12c1897120bace941625cfa27e547458.tar.bz2
xf86-input-evdev-c1b89bda12c1897120bace941625cfa27e547458.zip
Remove duplicate line
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/evdev.c5
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 */