From: Alon Levy Date: Thu, 28 Apr 2011 13:34:39 +0000 (+0300) Subject: ide/atapi: fix set but unused X-Git-Tag: v0.15.0-rc0~308 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab71982716928577826b9aa7fc9a5102bfce5f0e;p=thirdparty%2Fqemu.git ide/atapi: fix set but unused Signed-off-by: Alon Levy Acked-by: Stefan Weil Signed-off-by: Kevin Wolf --- diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c index 58febc02859..fe2fb0b8067 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"); }