Patchwork [04/10] lsi53c895a: remove unused variables

login
register
mail settings
Submitter Michael S. Tsirkin
Date June 14, 2011, 5:35 p.m.
Message ID <14a9a3e5cd647654bcd8735a919f24ee8dca8779.1308072799.git.mst@redhat.com>
Download mbox | patch
Permalink /patch/100461/
State New
Headers show

Comments

Michael S. Tsirkin - June 14, 2011, 5:35 p.m.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 hw/lsi53c895a.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
Stefan Hajnoczi - June 15, 2011, 9:23 a.m.
On Tue, Jun 14, 2011 at 08:35:44PM +0300, Michael S. Tsirkin wrote:
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
>  hw/lsi53c895a.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)

This one is already in the trivial-patches tree.

Stefan

Patch

diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index 3b75467..940b43a 100644
--- a/hw/lsi53c895a.c
+++ b/hw/lsi53c895a.c
@@ -889,7 +889,6 @@  static void lsi_do_msgout(LSIState *s)
     uint8_t msg;
     int len;
     uint32_t current_tag;
-    SCSIDevice *current_dev;
     lsi_request *current_req, *p, *p_next;
     int id;
 
@@ -901,7 +900,6 @@  static void lsi_do_msgout(LSIState *s)
         current_req = lsi_find_by_tag(s, current_tag);
     }
     id = (current_tag >> 8) & 0xf;
-    current_dev = s->bus.devs[id];
 
     DPRINTF("MSG out len=%d\n", s->dbc);
     while (s->dbc) {