From patchwork Thu Apr 28 13:34:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 93218 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C0B95B6F4D for ; Thu, 28 Apr 2011 23:34:53 +1000 (EST) Received: from localhost ([::1]:44763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFRMp-00066V-4S for incoming@patchwork.ozlabs.org; Thu, 28 Apr 2011 09:34:51 -0400 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 To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCHv2] ide/atapi: fix set but unused X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Alon Levy Acked-by: Stefan Weil --- 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"); }