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

This commit is contained in:
Adam Jackson 2006-04-14 23:10:59 +00:00
parent ab1d420022
commit 6545051902
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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:

View File

@ -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));