summaryrefslogtreecommitdiffstats
path: root/hw/usb
diff options
context:
space:
mode:
authorGonglei2015-04-28 11:11:03 +0200
committerMichael Tokarev2015-05-08 13:11:09 +0200
commite5a88b0cf3c902d6e9b342a90f0a4a4d5d954f7a (patch)
tree561b87efaec43954f060b087a40b85f4c460df8a /hw/usb
parenthw/ptimer: Do not artificially limit timers when using icount (diff)
downloadqemu-e5a88b0cf3c902d6e9b342a90f0a4a4d5d954f7a.tar.gz
qemu-e5a88b0cf3c902d6e9b342a90f0a4a4d5d954f7a.tar.xz
qemu-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>
Diffstat (limited to 'hw/usb')
-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");
}