evdev: fix "always false" comparison

Fixes "Comparison is always false because rc >= 0." warning by LGTM.

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
This commit is contained in:
Konstantin Kharlamov 2019-03-21 23:49:46 +03:00
parent c11810a4a3
commit 661a6d0169

View file

@ -2273,8 +2273,7 @@ evdev_read_fuzz_prop(struct evdev_device *device, unsigned int code)
if (prop == NULL)
return 0;
rc = safe_atoi(prop, &fuzz);
if (rc == -1 || fuzz < 0) {
if (safe_atoi(prop, &fuzz) == false || fuzz < 0) {
evdev_log_bug_libinput(device,
"invalid LIBINPUT_FUZZ property value: %s\n",
prop);