]> Git Repo - qemu.git/commitdiff
vmmouse_reset(): remove minimal code duplication
authorLaszlo Ersek <[email protected]>
Thu, 13 Dec 2012 14:01:49 +0000 (15:01 +0100)
committerStefan Hajnoczi <[email protected]>
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 <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
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);
This page took 0.030157 seconds and 4 git commands to generate.