Revert "evdev: restore EVDEV_UNHANDLED_DEVICE error code"
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 10 Feb 2014 01:22:39 +0000 (11:22 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 10 Feb 2014 01:23:35 +0000 (11:23 +1000)
This reverts commit e8c20c7241d29aa3b725e6a03d52656cafacf0e0.

Ooops, bad rebase. This accesses the device after it was already destroyed
which is not the intent of the patch.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev.c

index afcf14fc4ab6799b3e52c2d43f9aa505b9278ba9..9c6d116749800275e77a62858bbeacfebbde3185 100644 (file)
@@ -668,10 +668,6 @@ err:
        if (fd >= 0)
                close_restricted(libinput, fd);
        evdev_device_destroy(device);
-
-       if (device->seat_caps == 0)
-               return EVDEV_UNHANDLED_DEVICE;
-
        return NULL;
 }