mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-27 10:20:07 +01:00
evdev: Make error handling more consistent
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
05cc4a8ca8
commit
a0a685ff2e
1 changed files with 1 additions and 2 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue