vmmouse_reset(): remove minimal code duplication
Commit 069ab0eb
added a vmmouse_disable() call to vmmouse_reset().
vmmouse_disable() resets the status already.
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
c56dc77424
commit
5a6c7644b2
@ -252,7 +252,6 @@ static void vmmouse_reset(DeviceState *d)
|
||||
{
|
||||
VMMouseState *s = container_of(d, VMMouseState, dev.qdev);
|
||||
|
||||
s->status = 0xffff;
|
||||
s->queue_size = VMMOUSE_QUEUE_SIZE;
|
||||
|
||||
vmmouse_disable(s);
|
||||
|
Loading…
Reference in New Issue
Block a user