mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "usb: dwc3: Do not traverse list using list_for_each_safe"
This commit is contained in:
commit
8d79cb85f0
1 changed files with 2 additions and 2 deletions
|
|
@ -2804,11 +2804,11 @@ static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
|
|||
const struct dwc3_event_depevt *event, int status)
|
||||
{
|
||||
struct dwc3_request *req;
|
||||
struct dwc3_request *tmp;
|
||||
|
||||
list_for_each_entry_safe(req, tmp, &dep->started_list, list) {
|
||||
while (!list_empty(&dep->started_list)) {
|
||||
int ret;
|
||||
|
||||
req = next_request(&dep->started_list);
|
||||
ret = dwc3_gadget_ep_cleanup_completed_request(dep, event,
|
||||
req, status);
|
||||
if (ret)
|
||||
|
|
|
|||
Loading…
Reference in a new issue