commit | 18f88f1195e32afd86eab2bda083f4624180e3f4 | [log] [tgz] |
---|---|---|
author | Blue Swirl <blauwirbel@gmail.com> | Sun Sep 04 10:59:52 2011 +0000 |
committer | Blue Swirl <blauwirbel@gmail.com> | Sat Sep 10 14:49:51 2011 +0000 |
tree | 0ebbfe4c8659e3d0bc0ab0f0f885bf2a2f3d47b2 | |
parent | 48bb9f53f4944771bc5d7bf89bbaa61094ad4382 [diff] [blame] |
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>
diff --git a/hw/hid.c b/hw/hid.c index ec066cf..03761ab 100644 --- a/hw/hid.c +++ b/hw/hid.c
@@ -96,7 +96,7 @@ /* Windows drivers do not like the 0/0 position and ignore such * events. */ if (!(x1 | y1)) { - x1 = 1; + e->xdx = 1; } } e->dz += z1;