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>
This commit is contained in:
parent
48bb9f53f4
commit
18f88f1195
2
hw/hid.c
2
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
|
/* Windows drivers do not like the 0/0 position and ignore such
|
||||||
* events. */
|
* events. */
|
||||||
if (!(x1 | y1)) {
|
if (!(x1 | y1)) {
|
||||||
x1 = 1;
|
e->xdx = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
e->dz += z1;
|
e->dz += z1;
|
||||||
|
|
Reference in New Issue