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:
parent
1352eca224
commit
0110465416
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue