From 6545051902f2ce00c98bd1373f97ebc942667e9c Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 14 Apr 2006 23:10:59 +0000 Subject: Coverity #1003, #1004: Two more useless null checks. --- hw/dmx/input/dmxcommon.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'hw/dmx') diff --git a/hw/dmx/input/dmxcommon.c b/hw/dmx/input/dmxcommon.c index 6a2b840e9..278a74e71 100644 --- a/hw/dmx/input/dmxcommon.c +++ b/hw/dmx/input/dmxcommon.c @@ -483,7 +483,6 @@ int dmxCommonMouOn(DevicePtr pDev) GETPRIVFROMPDEV; GETDMXINPUTFROMPRIV; - if (!priv) return -1; priv->eventMask |= DMX_POINTER_EVENT_MASK; if (dmxShadowFB) { XWarpPointer(priv->display, priv->window, priv->window, @@ -509,7 +508,6 @@ void dmxCommonMouOff(DevicePtr pDev) GETPRIVFROMPDEV; GETDMXINPUTFROMPRIV; - if (!priv) return; priv->eventMask &= ~DMX_POINTER_EVENT_MASK; if (!priv->be) { RemoveEnabledDevice(XConnectionNumber(priv->display)); -- cgit v1.2.3