diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-09-04 10:59:52 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-09-10 14:49:51 +0000 |
commit | 18f88f1195e32afd86eab2bda083f4624180e3f4 (patch) | |
tree | 0ebbfe4c8659e3d0bc0ab0f0f885bf2a2f3d47b2 /hw/hid.c | |
parent | 48bb9f53f4944771bc5d7bf89bbaa61094ad4382 (diff) | |
download | qemu-18f88f1195e32afd86eab2bda083f4624180e3f4.zip qemu-18f88f1195e32afd86eab2bda083f4624180e3f4.tar.gz qemu-18f88f1195e32afd86eab2bda083f4624180e3f4.tar.bz2 |
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 <blauwirbel@gmail.com>
Diffstat (limited to 'hw/hid.c')
-rw-r--r-- | hw/hid.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |