@@ -1815,8 +1815,7 @@ struct xhci_segment *trb_in_td(struct xhci_hcd *xhci,
1815
1815
1816
1816
static void xhci_cleanup_halted_endpoint (struct xhci_hcd * xhci ,
1817
1817
unsigned int slot_id , unsigned int ep_index ,
1818
- unsigned int stream_id ,
1819
- struct xhci_td * td , union xhci_trb * ep_trb ,
1818
+ unsigned int stream_id , struct xhci_td * td ,
1820
1819
enum xhci_ep_reset_type reset_type )
1821
1820
{
1822
1821
struct xhci_virt_ep * ep = & xhci -> devs [slot_id ]-> eps [ep_index ];
@@ -1957,8 +1956,7 @@ static int finish_td(struct xhci_hcd *xhci, struct xhci_td *td,
1957
1956
* The class driver clears the device side halt later.
1958
1957
*/
1959
1958
xhci_cleanup_halted_endpoint (xhci , slot_id , ep_index ,
1960
- ep_ring -> stream_id , td , ep_trb ,
1961
- EP_HARD_RESET );
1959
+ ep_ring -> stream_id , td , EP_HARD_RESET );
1962
1960
} else {
1963
1961
/* Update ring dequeue pointer */
1964
1962
while (ep_ring -> dequeue != td -> last_trb )
@@ -2318,7 +2316,7 @@ static int handle_tx_event(struct xhci_hcd *xhci,
2318
2316
case COMP_INVALID_STREAM_TYPE_ERROR :
2319
2317
case COMP_INVALID_STREAM_ID_ERROR :
2320
2318
xhci_cleanup_halted_endpoint (xhci , slot_id , ep_index , 0 ,
2321
- NULL , NULL , EP_SOFT_RESET );
2319
+ NULL , EP_SOFT_RESET );
2322
2320
goto cleanup ;
2323
2321
case COMP_RING_UNDERRUN :
2324
2322
case COMP_RING_OVERRUN :
@@ -2584,8 +2582,7 @@ static int handle_tx_event(struct xhci_hcd *xhci,
2584
2582
xhci_cleanup_halted_endpoint (xhci , slot_id ,
2585
2583
ep_index ,
2586
2584
ep_ring -> stream_id ,
2587
- td , ep_trb ,
2588
- EP_HARD_RESET );
2585
+ td , EP_HARD_RESET );
2589
2586
goto cleanup ;
2590
2587
}
2591
2588
0 commit comments