From: Blue Swirl Date: Sun, 4 Sep 2011 10:59:52 +0000 (+0000) Subject: hid: fix misassignment X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=18f88f1195e32afd86eab2bda083f4624180e3f4;p=qemu.git hid: fix misassignment 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 --- diff --git a/hw/hid.c b/hw/hid.c index ec066cf2d3..03761ab8b8 100644 --- 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;