mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-12 15:00:19 +01:00
evdev: remove unnecessary comparison
All "goto err" resides after fd have been properly initialized. Fixes "Comparison is always true because fd >= 0." warning by LGTM. Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
This commit is contained in:
parent
661a6d0169
commit
3a8631a88d
1 changed files with 1 additions and 2 deletions
|
|
@ -2112,8 +2112,7 @@ evdev_device_create(struct libinput_seat *seat,
|
|||
return device;
|
||||
|
||||
err:
|
||||
if (fd >= 0)
|
||||
close_restricted(libinput, fd);
|
||||
close_restricted(libinput, fd);
|
||||
if (device)
|
||||
evdev_device_destroy(device);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue