Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f99f53f2 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: gadget: remove condition that never happens



We don't use LST bit anymore, so this condition will
never trigger.

Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 1f512119
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1918,13 +1918,11 @@ static int __dwc3_cleanup_done_trbs(struct dwc3 *dwc, struct dwc3_ep *dep,

	if (s_pkt && !chain)
		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) &&
			(trb->ctrl & DWC3_TRB_CTRL_IOC))
		return 1;

	return 0;
}