Patchwork [09/10] vmmouse_reset(): remove minimal code duplication

login
register
mail settings
Submitter Stefan Hajnoczi
Date Dec. 18, 2012, 4:51 p.m.
Message ID <1355849477-1226-10-git-send-email-stefanha@redhat.com>
Download mbox | patch
Permalink /patch/207170/
State New
Headers show

Comments

Stefan Hajnoczi - Dec. 18, 2012, 4:51 p.m.
From: Laszlo Ersek <lersek@redhat.com>

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 | 1 -
 1 file changed, 1 deletion(-)

Patch

diff --git a/hw/vmmouse.c b/hw/vmmouse.c
index 6338efa..578122c 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);