aboutsummaryrefslogtreecommitdiff
path: root/hw/hid.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-09-04 10:59:52 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-09-10 14:49:51 +0000
commit18f88f1195e32afd86eab2bda083f4624180e3f4 (patch)
tree0ebbfe4c8659e3d0bc0ab0f0f885bf2a2f3d47b2 /hw/hid.c
parent48bb9f53f4944771bc5d7bf89bbaa61094ad4382 (diff)
downloadqemu-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.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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;