summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-03-13 16:29:36 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-03-16 13:29:07 +1000
commitbe6dc9023b5fb3995a9ce56d607627e247918aef (patch)
treef956c9bacfdefd749af4b701e0cf17360a87ba08
parentxfixes: useless (void) typecast removal (diff)
downloadxserver-be6dc9023b5fb3995a9ce56d607627e247918aef.tar.gz
xserver-be6dc9023b5fb3995a9ce56d607627e247918aef.tar.bz2
xserver-be6dc9023b5fb3995a9ce56d607627e247918aef.zip
xfree86: remove a superfluous assignment.
If dev is NULL, we don't have a VCP and that means we have other issues anyway.
-rw-r--r--hw/xfree86/common/xf86Cursor.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/xfree86/common/xf86Cursor.c b/hw/xfree86/common/xf86Cursor.c
index 29b690ac8..6740faf65 100644
--- a/hw/xfree86/common/xf86Cursor.c
+++ b/hw/xfree86/common/xf86Cursor.c
@@ -227,8 +227,6 @@ xf86SwitchMode(ScreenPtr pScreen, DisplayModePtr mode)
if (IsPointerDevice(dev) && dev->spriteInfo->spriteOwner)
break;
}
- if (!dev)
- dev = inputInfo.pointer;
pCursorScreen = miPointerGetScreen(dev);
if (pScreen == pCursorScreen)