mirror of https://gitee.com/openkylin/qemu.git
xhci: remove dead code
Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
b13ce07688
commit
ac20e1bb0e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue