mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-05 08:48:02 +02: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;
|
goto err;
|
||||||
|
|
||||||
if (device->seat_caps == 0) {
|
if (device->seat_caps == 0) {
|
||||||
evdev_device_destroy(device);
|
goto err;
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the dispatch was not set up use the fallback. */
|
/* If the dispatch was not set up use the fallback. */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue