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>
This commit is contained in:
Alon Levy 2011-04-28 16:34:39 +03:00 committed by Kevin Wolf
parent 4a737d14d0
commit ab71982716
1 changed files with 1 additions and 3 deletions

View File

@ -1080,17 +1080,15 @@ static const struct {
void ide_atapi_cmd(IDEState *s) void ide_atapi_cmd(IDEState *s)
{ {
const uint8_t *packet;
uint8_t *buf; uint8_t *buf;
packet = s->io_buffer;
buf = s->io_buffer; buf = s->io_buffer;
#ifdef DEBUG_IDE_ATAPI #ifdef DEBUG_IDE_ATAPI
{ {
int i; int i;
printf("ATAPI limit=0x%x packet:", s->lcyl | (s->hcyl << 8)); printf("ATAPI limit=0x%x packet:", s->lcyl | (s->hcyl << 8));
for(i = 0; i < ATAPI_PACKET_SIZE; i++) { for(i = 0; i < ATAPI_PACKET_SIZE; i++) {
printf(" %02x", packet[i]); printf(" %02x", buf[i]);
} }
printf("\n"); printf("\n");
} }