Skip to content

Commit

Permalink
usb: dwc3: gadget: remove unnecessary 'ioc' variable
Browse files Browse the repository at this point in the history
It's only written to, never read. We can remove it now.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
  • Loading branch information
Felipe Balbi committed May 21, 2018
1 parent 12a3a4a commit 58f0218
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
@@ -2312,7 +2312,6 @@ static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
{
struct dwc3_request *req, *n;
struct dwc3_trb *trb;
bool ioc = false;
int ret = 0;

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

dwc3_gadget_giveback(dep, req, status);

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

/*

0 comments on commit 58f0218

Please sign in to comment.