From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFRMi-00066P-83 for qemu-devel@nongnu.org; Thu, 28 Apr 2011 09:34:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFRMh-0007bZ-4i for qemu-devel@nongnu.org; Thu, 28 Apr 2011 09:34:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFRMg-0007bT-Qp for qemu-devel@nongnu.org; Thu, 28 Apr 2011 09:34:43 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3SDYfLx018103 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 28 Apr 2011 09:34:41 -0400 Received: from playa.tlv.redhat.com (dhcp-3-110.tlv.redhat.com [10.35.3.110]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p3SDYehi014492 for ; Thu, 28 Apr 2011 09:34:40 -0400 From: Alon Levy Date: Thu, 28 Apr 2011 16:34:39 +0300 Message-Id: <1303997679-8885-1-git-send-email-alevy@redhat.com> In-Reply-To: <4DB95EF7.6090301@redhat.com> References: <4DB95EF7.6090301@redhat.com> Subject: [Qemu-devel] [PATCHv2] ide/atapi: fix set but unused List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Alon Levy --- 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 690a0ab..0073c8d 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.4.4