diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-05-23 14:49:43 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-06-14 12:56:48 +0200 |
commit | 8e4faf3de9d1a8bd3289e5cc69d4ed206e2ed0cf (patch) | |
tree | 4b3eb8ffe0d8332d10f12b23c3fa171c6e1550ae /hw | |
parent | d2bd525fbbebcb108a62963140dad076b476aa5f (diff) | |
download | qemu-8e4faf3de9d1a8bd3289e5cc69d4ed206e2ed0cf.zip qemu-8e4faf3de9d1a8bd3289e5cc69d4ed206e2ed0cf.tar.gz qemu-8e4faf3de9d1a8bd3289e5cc69d4ed206e2ed0cf.tar.bz2 |
ehci: fix a number of unused-but-set-variable warnings (new with gcc-4.6)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | 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 156ccd1..dd2752d 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) { |