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:
0215959
)
usb: dwc3: gadget: remove unnecessary 'chain' variable
author
Felipe Balbi
<felipe.balbi@linux.intel.com>
Thu, 29 Mar 2018 11:49:36 +0000
(14:49 +0300)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Mon, 21 May 2018 07:00:55 +0000
(10:00 +0300)
Minor cleanup, no functional changes.
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 7a9586631895ea960310d3bd4b2edfbfef9985b3..baf89134604a3f129db4de12260acd6893715bf0 100644
(file)
--- a/
drivers/usb/dwc3/gadget.c
+++ b/
drivers/usb/dwc3/gadget.c
@@
-2319,11
+2319,9
@@
static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
list_for_each_entry_safe(req, n, &dep->started_list, list) {
unsigned length;
- int chain;
length = req->request.length;
- chain = req->num_pending_sgs > 0;
- if (chain)
+ if (req->num_pending_sgs)
ret = dwc3_gadget_ep_reclaim_trb_sg(dep, req, event,
status);
else