]> Git Repo - qemu.git/commitdiff
hid: fix misassignment
authorBlue Swirl <[email protected]>
Sun, 4 Sep 2011 10:59:52 +0000 (10:59 +0000)
committerBlue Swirl <[email protected]>
Sat, 10 Sep 2011 14:49:51 +0000 (14:49 +0000)
The code does not have any effect as is, fix it.

Spotted by clang analyzer:
/src/qemu/hw/hid.c:99:13: warning: Value stored to 'x1' is never read
            x1 = 1;

Signed-off-by: Blue Swirl <[email protected]>
hw/hid.c

index ec066cf2d31d99cd884650f516f63f2c3bfb43a3..03761ab8b8ec591305300e07ead26ca10aaa8f86 100644 (file)
--- a/hw/hid.c
+++ b/hw/hid.c
@@ -96,7 +96,7 @@ static void hid_pointer_event_combine(HIDPointerEvent *e, int xyrel,
         /* Windows drivers do not like the 0/0 position and ignore such
          * events. */
         if (!(x1 | y1)) {
-            x1 = 1;
+            e->xdx = 1;
         }
     }
     e->dz += z1;
This page took 0.02756 seconds and 4 git commands to generate.