summaryrefslogtreecommitdiff
path: root/hw/usb
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-10-14 08:40:22 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-10-15 13:39:48 +0200
commitac20e1bb0e77cdf79c6e3f90ff910a46d8ca04c9 (patch)
treed3c53b3a8849232af73cacfebb51099337348104 /hw/usb
parentb13ce07688b0727814b6609a912651242ee1a8f1 (diff)
downloadqemu-ac20e1bb0e77cdf79c6e3f90ff910a46d8ca04c9.tar.gz
xhci: remove dead code
Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb')
-rw-r--r--hw/usb/hcd-xhci.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index c556367cb1..a27c9d37fa 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -1608,12 +1608,6 @@ static TRBCCode xhci_reset_ep(XHCIState *xhci, unsigned int slotid,
"data might be lost\n");
}
- uint8_t ep = epid>>1;
-
- if (epid & 1) {
- ep |= 0x80;
- }
-
if (!xhci->slots[slotid-1].uport ||
!xhci->slots[slotid-1].uport->dev ||
!xhci->slots[slotid-1].uport->dev->attached) {