From: Gerd Hoffmann Date: Tue, 14 Oct 2014 06:40:22 +0000 (+0200) Subject: xhci: remove dead code X-Git-Tag: v2.2.0-rc0~36^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac20e1bb0e77cdf79c6e3f90ff910a46d8ca04c9;p=thirdparty%2Fqemu.git xhci: remove dead code Reported-by: Dr. David Alan Gilbert Signed-off-by: Gerd Hoffmann --- diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index c556367cb13..a27c9d37fa4 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) {