diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-04-06 08:50:29 -0400 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-05-21 03:00:57 -0400 |
commit | fee73e6144d8a0399d17f9ca3b7e5121057eab2d (patch) | |
tree | cb15009b0dc03cbcfe92b14dd007e5105871c530 /drivers/usb/dwc3 | |
parent | 6afbdb57732bc9617078e9a566eafa5f542a5c28 (diff) |
usb: dwc3: gadget: reduce scope of ret variable
We can declare it inside list_for_each_entry_safe() loop and reduce
its scope.
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index e230b0a2a2f3..263f9506102f 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c | |||
@@ -2313,10 +2313,10 @@ static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep, | |||
2313 | { | 2313 | { |
2314 | struct dwc3_request *req; | 2314 | struct dwc3_request *req; |
2315 | struct dwc3_request *tmp; | 2315 | struct dwc3_request *tmp; |
2316 | int ret = 0; | ||
2317 | 2316 | ||
2318 | list_for_each_entry_safe(req, tmp, &dep->started_list, list) { | 2317 | list_for_each_entry_safe(req, tmp, &dep->started_list, list) { |
2319 | unsigned length; | 2318 | unsigned length; |
2319 | int ret; | ||
2320 | 2320 | ||
2321 | length = req->request.length; | 2321 | length = req->request.length; |
2322 | if (req->num_pending_sgs) | 2322 | if (req->num_pending_sgs) |