aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver McFadden <oliver.mcfadden@nokia.com>2009-07-16 18:25:37 +0300
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-17 11:08:51 +1000
commit9bfd9e8a3683f14860149ae9f842e88828cc0960 (patch)
treed5cde9873457c7575d98269d9597258b49987928
parentCount REL_DIAL as a scrollwheel during EvdevProbe (#21457) (diff)
downloadxf86-input-evdev-9bfd9e8a3683f14860149ae9f842e88828cc0960.tar.gz
xf86-input-evdev-9bfd9e8a3683f14860149ae9f842e88828cc0960.tar.bz2
xf86-input-evdev-9bfd9e8a3683f14860149ae9f842e88828cc0960.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>
-rw-r--r--src/emuWheel.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/emuWheel.c b/src/emuWheel.c
index bb3a980..a1c754d 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)