mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-14 18:49:15 +00:00
usb: dwc3: gadget: remove condition that never happens
We don't use LST bit anymore, so this condition will never trigger. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
1f512119a0
commit
f99f53f24d
1 changed files with 2 additions and 4 deletions
|
@ -1918,13 +1918,11 @@ static int __dwc3_cleanup_done_trbs(struct dwc3 *dwc, struct dwc3_ep *dep,
|
||||||
|
|
||||||
if (s_pkt && !chain)
|
if (s_pkt && !chain)
|
||||||
return 1;
|
return 1;
|
||||||
if ((event->status & DEPEVT_STATUS_LST) &&
|
|
||||||
(trb->ctrl & (DWC3_TRB_CTRL_LST |
|
|
||||||
DWC3_TRB_CTRL_HWO)))
|
|
||||||
return 1;
|
|
||||||
if ((event->status & DEPEVT_STATUS_IOC) &&
|
if ((event->status & DEPEVT_STATUS_IOC) &&
|
||||||
(trb->ctrl & DWC3_TRB_CTRL_IOC))
|
(trb->ctrl & DWC3_TRB_CTRL_IOC))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue