summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2015-04-28 17:11:03 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2015-05-08 14:11:09 +0300
commite5a88b0cf3c902d6e9b342a90f0a4a4d5d954f7a (patch)
tree561b87efaec43954f060b087a40b85f4c460df8a
parentf8340b360b9bc29d48716ba8aca79df2b9544979 (diff)
downloadqemu-e5a88b0cf3c902d6e9b342a90f0a4a4d5d954f7a.zip
xhci: remove unused code
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 <kraxel@redhat.com> Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r--hw/usb/hcd-xhci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index ba15ae0019..99f11fcbb3 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -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");
}