[PATCH libXi] Remove a few unused assignments.

Peter Hutterer peter.hutterer at who-t.net
Mon May 2 21:55:07 PDT 2011


Found by static analyzer.

Reported-by: Jeremy Huddleston <jeremyhu at apple.com>
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/XExtInt.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/XExtInt.c b/src/XExtInt.c
index 134ccc6..55144c6 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -760,7 +760,6 @@ XInputWireToEvent(
                         return (DONT_ENQUEUE);
                     else {
                         *re = *save;
-                        stev = (XDeviceStateNotifyEvent *) re;
                         return (ENQUEUE_EVENT);
                     }
                 }
@@ -788,7 +787,6 @@ XInputWireToEvent(
                         return (DONT_ENQUEUE);
                     else {
                         *re = *save;
-                        kstev = (XDeviceStateNotifyEvent *) re;
                         return (ENQUEUE_EVENT);
                     }
                 }
@@ -816,7 +814,6 @@ XInputWireToEvent(
                         return (DONT_ENQUEUE);
                     else {
                         *re = *save;
-                        bstev = (XDeviceStateNotifyEvent *) re;
                         return (ENQUEUE_EVENT);
                     }
                 }
-- 
1.7.4.4



More information about the xorg-devel mailing list