Skip to content

Commit 0c34191

Browse files
LuBaolugregkh
authored andcommitted
usb: xhci: Remove ep_trb from finish_td()
Function argument ep_trb for finish_td() isn't needed anymore. Cleanup it. Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5fee5a5 commit 0c34191

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/usb/host/xhci-ring.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,7 +1921,7 @@ static int xhci_td_cleanup(struct xhci_hcd *xhci, struct xhci_td *td,
19211921
}
19221922

19231923
static int finish_td(struct xhci_hcd *xhci, struct xhci_td *td,
1924-
union xhci_trb *ep_trb, struct xhci_transfer_event *event,
1924+
struct xhci_transfer_event *event,
19251925
struct xhci_virt_ep *ep, int *status)
19261926
{
19271927
struct xhci_virt_device *xdev;
@@ -2081,7 +2081,7 @@ static int process_ctrl_td(struct xhci_hcd *xhci, struct xhci_td *td,
20812081
td->urb->actual_length = requested;
20822082

20832083
finish_td:
2084-
return finish_td(xhci, td, ep_trb, event, ep, status);
2084+
return finish_td(xhci, td, event, ep, status);
20852085
}
20862086

20872087
/*
@@ -2168,7 +2168,7 @@ static int process_isoc_td(struct xhci_hcd *xhci, struct xhci_td *td,
21682168

21692169
td->urb->actual_length += frame->actual_length;
21702170

2171-
return finish_td(xhci, td, ep_trb, event, ep, status);
2171+
return finish_td(xhci, td, event, ep, status);
21722172
}
21732173

21742174
static int skip_isoc_td(struct xhci_hcd *xhci, struct xhci_td *td,
@@ -2258,7 +2258,7 @@ static int process_bulk_intr_td(struct xhci_hcd *xhci, struct xhci_td *td,
22582258
remaining);
22592259
td->urb->actual_length = 0;
22602260
}
2261-
return finish_td(xhci, td, ep_trb, event, ep, status);
2261+
return finish_td(xhci, td, event, ep, status);
22622262
}
22632263

22642264
/*

0 commit comments

Comments
 (0)