@@ -1741,13 +1741,9 @@ static void dwc3_gadget_ep_cleanup_cancelled_requests(struct dwc3_ep *dep)
1741
1741
{
1742
1742
struct dwc3_request * req ;
1743
1743
struct dwc3_request * tmp ;
1744
- struct list_head local ;
1745
1744
struct dwc3 * dwc = dep -> dwc ;
1746
1745
1747
- restart :
1748
- list_replace_init (& dep -> cancelled_list , & local );
1749
-
1750
- list_for_each_entry_safe (req , tmp , & local , list ) {
1746
+ list_for_each_entry_safe (req , tmp , & dep -> cancelled_list , list ) {
1751
1747
dwc3_gadget_ep_skip_trbs (dep , req );
1752
1748
switch (req -> status ) {
1753
1749
case DWC3_REQUEST_STATUS_DISCONNECTED :
@@ -1765,9 +1761,6 @@ static void dwc3_gadget_ep_cleanup_cancelled_requests(struct dwc3_ep *dep)
1765
1761
break ;
1766
1762
}
1767
1763
}
1768
-
1769
- if (!list_empty (& dep -> cancelled_list ))
1770
- goto restart ;
1771
1764
}
1772
1765
1773
1766
static int dwc3_gadget_ep_dequeue (struct usb_ep * ep ,
@@ -2976,22 +2969,15 @@ static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
2976
2969
{
2977
2970
struct dwc3_request * req ;
2978
2971
struct dwc3_request * tmp ;
2979
- struct list_head local ;
2980
2972
2981
- restart :
2982
- list_replace_init (& dep -> started_list , & local );
2983
-
2984
- list_for_each_entry_safe (req , tmp , & local , list ) {
2973
+ list_for_each_entry_safe (req , tmp , & dep -> started_list , list ) {
2985
2974
int ret ;
2986
2975
2987
2976
ret = dwc3_gadget_ep_cleanup_completed_request (dep , event ,
2988
2977
req , status );
2989
2978
if (ret )
2990
2979
break ;
2991
2980
}
2992
-
2993
- if (!list_empty (& dep -> started_list ))
2994
- goto restart ;
2995
2981
}
2996
2982
2997
2983
static bool dwc3_gadget_ep_should_continue (struct dwc3_ep * dep )
0 commit comments