evdev: Make error handling more consistent

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
Jonas Ådahl 2014-01-22 23:43:45 +01:00
parent 05cc4a8ca8
commit a0a685ff2e

View file

@ -628,8 +628,7 @@ evdev_device_create(struct libinput_seat *seat,
goto err;
if (device->seat_caps == 0) {
evdev_device_destroy(device);
return NULL;
goto err;
}
/* If the dispatch was not set up use the fallback. */