From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTZ65-00088q-9Y for qemu-devel@nongnu.org; Mon, 06 Jun 2011 08:39:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTZ63-0005NM-Nw for qemu-devel@nongnu.org; Mon, 06 Jun 2011 08:39:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTZ62-0005Mx-V5 for qemu-devel@nongnu.org; Mon, 06 Jun 2011 08:39:55 -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 p56Cdre4021065 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 6 Jun 2011 08:39:53 -0400 From: Gerd Hoffmann Date: Mon, 6 Jun 2011 14:39:02 +0200 Message-Id: <1307363962-27223-12-git-send-email-kraxel@redhat.com> In-Reply-To: <1307363962-27223-1-git-send-email-kraxel@redhat.com> References: <1307363962-27223-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 11/31] ehci: fix a number of unused-but-set-variable warnings (new with gcc-4.6) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Hans de Goede , Gerd Hoffmann From: Hans de Goede Signed-off-by: Gerd Hoffmann --- 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) { -- 1.7.1