aboutsummaryrefslogtreecommitdiff
path: root/hw/ide/atapi.c
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-04-28 16:34:39 +0300
committerKevin Wolf <kwolf@redhat.com>2011-05-03 11:29:21 +0200
commitab71982716928577826b9aa7fc9a5102bfce5f0e (patch)
tree8015da96312d1286babe3782864e65b0d1f88059 /hw/ide/atapi.c
parent4a737d14d0788412eead23330b554eb75900af04 (diff)
ide/atapi: fix set but unused
Signed-off-by: Alon Levy <alevy@redhat.com> Acked-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/ide/atapi.c')
-rw-r--r--hw/ide/atapi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
index 58febc0285..fe2fb0b806 100644
--- a/hw/ide/atapi.c
+++ b/hw/ide/atapi.c
@@ -1080,17 +1080,15 @@ static const struct {
void ide_atapi_cmd(IDEState *s)
{
- const uint8_t *packet;
uint8_t *buf;
- packet = s->io_buffer;
buf = s->io_buffer;
#ifdef DEBUG_IDE_ATAPI
{
int i;
printf("ATAPI limit=0x%x packet:", s->lcyl | (s->hcyl << 8));
for(i = 0; i < ATAPI_PACKET_SIZE; i++) {
- printf(" %02x", packet[i]);
+ printf(" %02x", buf[i]);
}
printf("\n");
}