diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-03-29 13:49:36 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-05-21 09:00:55 +0200 |
commit | cf35fc336e668fcac6dc981eac9f7646859ba601 (patch) | |
tree | cb73adb184f714510759bc718c5d80ec6a7ad35e /drivers/usb/dwc3/gadget.c | |
parent | usb: dwc3: gadget: remove PENDING handling from cleanup_completed (diff) | |
download | linux-cf35fc336e668fcac6dc981eac9f7646859ba601.tar.xz linux-cf35fc336e668fcac6dc981eac9f7646859ba601.zip |
usb: dwc3: gadget: remove unnecessary 'chain' variable
Minor cleanup, no functional changes.
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 7a9586631895..baf89134604a 100644 --- 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 |