OSDN Git Service

xhci: remove dead code
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 14 Oct 2014 06:40:22 +0000 (08:40 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 15 Oct 2014 11:39:48 +0000 (13:39 +0200)
Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c

index c556367..a27c9d3 100644 (file)
@@ -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) {