We can just call reclaim_trb_linear instead of reimplementing it.
Signed-off-by: Felipe Balbi <[email protected]>
---
drivers/usb/dwc3/gadget.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 63e74a8964d7..c43d1d4b7bb5 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -2289,7 +2289,6 @@ static void
dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
const struct dwc3_event_depevt *event, int status)
{
struct dwc3_request *req, *n;
- struct dwc3_trb *trb;
int ret = 0;
list_for_each_entry_safe(req, n, &dep->started_list, list) {
@@ -2304,9 +2303,8 @@ static void
dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
status);
if (req->unaligned || req->zero) {
- trb = &dep->trb_pool[dep->trb_dequeue];
- ret = dwc3_gadget_ep_reclaim_completed_trb(dep, req,
- trb, event, status, false);
+ ret = dwc3_gadget_ep_reclaim_trb_linear(dep, req, event,
+ status);
req->unaligned = false;
req->zero = false;
}
--
2.16.1
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html