]> Git Repo - qemu.git/commitdiff
xhci: remove unused code
authorGonglei <[email protected]>
Tue, 28 Apr 2015 09:11:03 +0000 (17:11 +0800)
committerMichael Tokarev <[email protected]>
Fri, 8 May 2015 11:11:09 +0000 (14:11 +0300)
Value from xfer->packet.ep is assigned to ep here, but that
stored value is not used before it is overwritten. Remove it.

Cc: Gerd Hoffmann <[email protected]>
Signed-off-by: Gonglei <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
hw/usb/hcd-xhci.c

index ba15ae00198d0e793e2ee085413afe3fec748b4a..99f11fcbb3c9f5a45af25777a7b54d33a65cc946 100644 (file)
@@ -2204,7 +2204,6 @@ static void xhci_kick_ep(XHCIState *xhci, unsigned int slotid,
         if (epid == 1) {
             if (xhci_fire_ctl_transfer(xhci, xfer) >= 0) {
                 epctx->next_xfer = (epctx->next_xfer + 1) % TD_QUEUE;
-                ep = xfer->packet.ep;
             } else {
                 DPRINTF("xhci: error firing CTL transfer\n");
             }
This page took 0.025335 seconds and 4 git commands to generate.