From: Felipe Balbi Date: Thu, 29 Mar 2018 09:10:31 +0000 (+0300) Subject: usb: dwc3: gadget: remove unnecessary 'ioc' variable X-Git-Tag: v4.19~894^2~81^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58f0218a271d297487aff56b0982a032c8ea35b3;p=platform%2Fkernel%2Flinux-rpi.git usb: dwc3: gadget: remove unnecessary 'ioc' variable It's only written to, never read. We can remove it now. Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index fed29ca..4e2bef9 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; - } } /*