diff options
author | Oliver McFadden <oliver.mcfadden@nokia.com> | 2009-07-16 18:25:37 +0300 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-30 09:44:34 +1000 |
commit | 9f3632c0b6c181706daf661646de5994217c0bb2 (patch) | |
tree | c2ce13a2742392131328788c53992f41e182717a /src/emuWheel.c | |
parent | evdev: Fix spelling of property in man page to match source code. #22571 (diff) | |
download | xf86-input-evdev-9f3632c0b6c181706daf661646de5994217c0bb2.tar.gz xf86-input-evdev-9f3632c0b6c181706daf661646de5994217c0bb2.tar.bz2 xf86-input-evdev-9f3632c0b6c181706daf661646de5994217c0bb2.zip |
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>
(cherry picked from commit 9bfd9e8a3683f14860149ae9f842e88828cc0960)
Diffstat (limited to 'src/emuWheel.c')
-rw-r--r-- | src/emuWheel.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/emuWheel.c b/src/emuWheel.c index 7d3eb24..2854736 100644 --- a/src/emuWheel.c +++ b/src/emuWheel.c @@ -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) |