summaryrefslogtreecommitdiff
path: root/hw/dmx
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-14 23:10:59 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-14 23:10:59 +0000
commit6545051902f2ce00c98bd1373f97ebc942667e9c (patch)
treed682af0d94ffb5cdfb9ba5b543c8c13a388e3792 /hw/dmx
parentab1d420022fb09d36a0d6ad948c38147c65b9adf (diff)
Coverity #1003, #1004: Two more useless null checks.
Diffstat (limited to 'hw/dmx')
-rw-r--r--hw/dmx/input/dmxcommon.c2
1 files changed, 0 insertions, 2 deletions
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));