From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHDQV-0001IV-0s for qemu-devel@nongnu.org; Tue, 03 May 2011 07:05:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHDQS-0005Pw-Mp for qemu-devel@nongnu.org; Tue, 03 May 2011 07:05:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHDQS-0005PW-Ds for qemu-devel@nongnu.org; Tue, 03 May 2011 07:05:56 -0400 From: Kevin Wolf Date: Tue, 3 May 2011 13:08:24 +0200 Message-Id: <1304420906-5776-5-git-send-email-kwolf@redhat.com> In-Reply-To: <1304420906-5776-1-git-send-email-kwolf@redhat.com> References: <1304420906-5776-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 4/6] ide/atapi: fix set but unused List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Alon Levy Signed-off-by: Alon Levy Acked-by: Stefan Weil Signed-off-by: Kevin Wolf --- hw/ide/atapi.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c index 58febc0..fe2fb0b 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"); } -- 1.7.2.3