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

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

usb: dwc3: gadget: simplify isoc case on cleanup_completed_requests



Just a minor simplification, no functional changes.

Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent fe990cea
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -2351,18 +2351,11 @@ static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
		return;

	if (usb_endpoint_xfer_isoc(dep->endpoint.desc) &&
			list_empty(&dep->started_list)) {
		if (list_empty(&dep->pending_list)) {
			/*
			 * If there is no entry in request list then do
			 * not issue END TRANSFER now. Just set PENDING
			 * flag, so that END TRANSFER is issued when an
			 * entry is added into request list.
			 */
			list_empty(&dep->started_list) &&
			list_empty(&dep->pending_list)) {
		dep->flags = DWC3_EP_PENDING_REQUEST;
	}
}
}

static void dwc3_gadget_endpoint_frame_from_event(struct dwc3_ep *dep,
		const struct dwc3_event_depevt *event)