aboutsummaryrefslogtreecommitdiff
path: root/hw/vmmouse.c
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2012-12-13 15:01:49 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2012-12-18 17:38:44 +0100
commit5a6c7644b215060a43d94709307d86bc50e1b4b9 (patch)
tree507bcaf3a08eefc5479db753e8d7170ff7bf8704 /hw/vmmouse.c
parentc56dc774242f902e51e2343f4472e742ef2b7838 (diff)
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>
Diffstat (limited to 'hw/vmmouse.c')
-rw-r--r--hw/vmmouse.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/vmmouse.c b/hw/vmmouse.c
index 6338efa1c3..578122c9f5 100644
--- a/hw/vmmouse.c
+++ b/hw/vmmouse.c
@@ -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);