mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
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
1 changed files with 1 additions and 1 deletions
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
|
||||
* events. */
|
||||
if (!(x1 | y1)) {
|
||||
x1 = 1;
|
||||
e->xdx = 1;
|
||||
}
|
||||
}
|
||||
e->dz += z1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue