summaryrefslogtreecommitdiff
path: root/hw/dmx/input/lnx-ps2.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/dmx/input/lnx-ps2.c')
-rw-r--r--hw/dmx/input/lnx-ps2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/dmx/input/lnx-ps2.c b/hw/dmx/input/lnx-ps2.c
index 70918eef4..3a220cf01 100644
--- a/hw/dmx/input/lnx-ps2.c
+++ b/hw/dmx/input/lnx-ps2.c
@@ -269,7 +269,7 @@ pointer ps2LinuxCreatePrivate(DeviceIntPtr pMouse)
/** Destroy a private structure. */
void ps2LinuxDestroyPrivate(pointer priv)
{
- if (priv) free(priv);
+ free(priv);
}
/** Fill the \a info structure with information needed to initialize \a