projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48bb9f5
)
hid: fix misassignment
author
Blue Swirl
<blauwirbel@gmail.com>
Sun, 4 Sep 2011 10:59:52 +0000
(10:59 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
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 <blauwirbel@gmail.com>
hw/hid.c
patch
|
blob
|
history
diff --git
a/hw/hid.c
b/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;