Skip to content

Commit

Permalink
lsi: Fix unused-but-set-variable warning
Browse files Browse the repository at this point in the history
This warning is new in gcc 4.6.

Signed-off-by: Christophe Fergeau <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
  • Loading branch information
cfergeau authored and Stefan Hajnoczi committed Jun 20, 2011
1 parent eb47d7c commit bf79d49
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hw/lsi53c895a.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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) {
Expand Down

0 comments on commit bf79d49

Please sign in to comment.