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:
Konstantin Kharlamov 2019-03-22 00:02:24 +03:00
parent 661a6d0169
commit 3a8631a88d

View file

@ -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);