DM USB: code clean: remove redundent code

When control transfer is detected and an unnecessary reset of
struct usb_xfer is conducted. This behavior is not necessary
and this patch is used to remove it.

Tracked-On: #3628
Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Xiaoguang Wu 2019-09-23 22:11:30 +08:00 committed by wenlingz
parent 1352eca224
commit 0110465416
1 changed files with 1 additions and 5 deletions

View File

@ -3033,11 +3033,7 @@ errout:
pci_xhci_assert_interrupt(xdev);
if (do_retry) {
if (epid == 1)
memset(xfer, 0, sizeof(*xfer));
UPRINTF(LDBG, "[%d]: retry:continuing with next TRBs\r\n",
__LINE__);
UPRINTF(LDBG, "[%d]: retry next TRBs\r\n", __LINE__);
goto retry;
}
return err;