]> xenbits.xensource.com Git - people/aperard/qemu-dm.git/commitdiff
vmmouse_reset(): remove minimal code duplication
authorLaszlo Ersek <lersek@redhat.com>
Thu, 13 Dec 2012 14:01:49 +0000 (15:01 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 18 Dec 2012 16:38:44 +0000 (17:38 +0100)
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>
hw/vmmouse.c

index 6338efa1c396d1b33c41333f0dba466a0b57ce61..578122c9f585c3f0ba9846f5a0af0847bdb2883c 100644 (file)
@@ -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);