summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.c
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2018-03-29 12:10:31 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-05-21 10:00:53 +0300
commit58f0218a271d297487aff56b0982a032c8ea35b3 (patch)
tree03f9f1c0064944ed104dc4c1529d008dfe24a768 /drivers/usb/dwc3/gadget.c
parent12a3a4ada81635689e2bd926e90131426a5e0a0a (diff)
downloadlinux-58f0218a271d297487aff56b0982a032c8ea35b3.tar.gz
linux-58f0218a271d297487aff56b0982a032c8ea35b3.tar.bz2
linux-58f0218a271d297487aff56b0982a032c8ea35b3.zip
usb: dwc3: gadget: remove unnecessary 'ioc' variable
It's only written to, never read. We can remove it now. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r--drivers/usb/dwc3/gadget.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index fed29cab48c0..4e2bef990c50 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -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;
- }
}
/*