mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-24 09:44:28 +00:00
Coverity Prevent: NO_EFFECT in EvdevWheelEmuSetProperty:
Event unsigned_compare: Comparing unsigned less than zero is never true. "pEvdev->emulateWheel.timeout < 0UL" 342 if (pEvdev->emulateWheel.timeout < 0) Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
dcca28a59c
commit
9bfd9e8a36
@@ -337,15 +337,6 @@ EvdevWheelEmuSetProperty(DeviceIntPtr dev, Atom atom, XIPropertyValuePtr val,
|
||||
16, PropModeReplace, 1,
|
||||
&pEvdev->emulateWheel.inertia, TRUE);
|
||||
}
|
||||
|
||||
/* Don't enable with negative timeout */
|
||||
if (pEvdev->emulateWheel.timeout < 0)
|
||||
{
|
||||
pEvdev->emulateWheel.timeout = 200;
|
||||
XIChangeDeviceProperty(dev, prop_wheel_timeout, XA_INTEGER, 16,
|
||||
PropModeReplace, 1,
|
||||
&pEvdev->emulateWheel.timeout, TRUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (atom == prop_wheel_button)
|
||||
|
||||
Reference in New Issue
Block a user