summaryrefslogtreecommitdiff
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-30 09:44:34 +1000
commit9f3632c0b6c181706daf661646de5994217c0bb2 (patch)
treec2ce13a2742392131328788c53992f41e182717a
parent06b303f26d5fab17b7d82dbf2bda3f77dad2364c (diff)
downloadxorg-driver-xf86-input-evdev-9f3632c0b6c181706daf661646de5994217c0bb2.tar.gz
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)
-rw-r--r--src/emuWheel.c9
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)