projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12a3a4a
)
usb: dwc3: gadget: remove unnecessary 'ioc' variable
author
Felipe Balbi
<felipe.balbi@linux.intel.com>
Thu, 29 Mar 2018 09:10:31 +0000
(12:10 +0300)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Mon, 21 May 2018 07:00:53 +0000
(10:00 +0300)
It's only written to, never read. We can remove it now.
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc3/gadget.c
b/drivers/usb/dwc3/gadget.c
index fed29cab48c018679e096b8b5e57c54a706594b1..4e2bef990c50d696701c0be4d3224c7afc42c805 100644
(file)
--- 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;
- }
}
/*