From patchwork Thu May 26 10:44:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 97526 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 23C6FB6F97 for ; Thu, 26 May 2011 20:45:49 +1000 (EST) Received: from localhost ([::1]:53502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPY4U-0002tl-Oz for incoming@patchwork.ozlabs.org; Thu, 26 May 2011 06:45:42 -0400 Received: from eggs.gnu.org ([140.186.70.92]:53293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPY3x-0002Ty-M2 for qemu-devel@nongnu.org; Thu, 26 May 2011 06:45:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPY3w-0000yJ-MU for qemu-devel@nongnu.org; Thu, 26 May 2011 06:45:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPY3w-0000y3-EX for qemu-devel@nongnu.org; Thu, 26 May 2011 06:45:08 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4QAj7XJ005385 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 26 May 2011 06:45:07 -0400 Received: from rincewind.home.kraxel.org (vpn1-4-50.ams2.redhat.com [10.36.4.50]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4QAicRs027138; Thu, 26 May 2011 06:44:47 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id E00CB441C0; Thu, 26 May 2011 12:44:15 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Thu, 26 May 2011 12:44:13 +0200 Message-Id: <1306406654-19351-12-git-send-email-kraxel@redhat.com> In-Reply-To: <1306406654-19351-1-git-send-email-kraxel@redhat.com> References: <1306406654-19351-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Hans de Goede Subject: [Qemu-devel] [PATCH 11/12] ehci: fix a number of unused-but-set-variable warnings (new with gcc-4.6) 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 From: Hans de Goede --- hw/usb-ehci.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index 2bbb5e4..e368395 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -740,11 +740,9 @@ static void ehci_detach(USBPort *port) static void ehci_reset(void *opaque) { EHCIState *s = opaque; - uint8_t *pci_conf; int i; trace_usb_ehci_reset(); - pci_conf = s->dev.config; memset(&s->mmio[OPREGBASE], 0x00, MMIO_SIZE - OPREGBASE); @@ -1268,12 +1266,11 @@ static int ehci_process_itd(EHCIState *ehci, int dir; int devadr; int endp; - int maxpkt; dir =(itd->bufptr[1] & ITD_BUFPTR_DIRECTION); devadr = get_field(itd->bufptr[0], ITD_BUFPTR_DEVADDR); endp = get_field(itd->bufptr[0], ITD_BUFPTR_EP); - maxpkt = get_field(itd->bufptr[1], ITD_BUFPTR_MAXPKT); + /* maxpkt = get_field(itd->bufptr[1], ITD_BUFPTR_MAXPKT); */ for(i = 0; i < 8; i++) { if (itd->transact[i] & ITD_XACT_ACTIVE) {