summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-06-01 14:56:30 +0200
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-06-20 16:42:35 +0100
commitbf79d499828cffc15274da28f8e579e36c086642 (patch)
treee58999b22a0947d26456af13317bc66f6b63058e /hw
parenteb47d7c5d96060040931c42773ee07e61e547af9 (diff)
downloadqemu-bf79d499828cffc15274da28f8e579e36c086642.tar.gz
lsi: Fix unused-but-set-variable warning
This warning is new in gcc 4.6. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/lsi53c895a.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index 83084b6b6a..90c6cbcbf0 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) {