Commit 65450519 authored by Adam Jackson's avatar Adam Jackson 🎧

Coverity #1003, #1004: Two more useless null checks.

parent ab1d4200
2006-04-14 Adam Jackson <ajax@freedesktop.org>
* hw/dmx/input/dmxcommon.c:
Coverity #1003, #1004: Two more useless null checks.
2006-04-14 Adam Jackson <ajax@freedesktop.org>
* hw/dmx/input/dmxconsole.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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment