From 9bfd9e8a3683f14860149ae9f842e88828cc0960 Mon Sep 17 00:00:00 2001 From: Oliver McFadden Date: Thu, 16 Jul 2009 18:25:37 +0300 Subject: 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 --- src/emuWheel.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/emuWheel.c') 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) -- cgit v1.2.3