mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-10 01:00:17 +01:00
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:
parent
c11810a4a3
commit
661a6d0169
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue