Commit 58f0218a authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: gadget: remove unnecessary 'ioc' variable



It's only written to, never read. We can remove it now.

Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 12a3a4ad
Loading
Loading
Loading
Loading
+1 −6
Original line number Original line Diff line number Diff line
@@ -2312,7 +2312,6 @@ static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
{
{
	struct dwc3_request	*req, *n;
	struct dwc3_request	*req, *n;
	struct dwc3_trb		*trb;
	struct dwc3_trb		*trb;
	bool			ioc = false;
	int			ret = 0;
	int			ret = 0;


	list_for_each_entry_safe(req, n, &dep->started_list, list) {
	list_for_each_entry_safe(req, n, &dep->started_list, list) {
@@ -2375,13 +2374,9 @@ static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,


		dwc3_gadget_giveback(dep, req, status);
		dwc3_gadget_giveback(dep, req, status);


		if (ret) {
		if (ret)
			if ((event->status & DEPEVT_STATUS_IOC) &&
			    (trb->ctrl & DWC3_TRB_CTRL_IOC))
				ioc = true;
			break;
			break;
	}
	}
	}


	/*
	/*
	 * Our endpoint might get disabled by another thread during
	 * Our endpoint might get disabled by another thread during