aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/xhci-ring.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 9541e88df68..aaed076bae3 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -526,9 +526,6 @@ static void handle_stopped_endpoint(struct xhci_hcd *xhci,
526 struct xhci_td *last_unlinked_td; 526 struct xhci_td *last_unlinked_td;
527 527
528 struct xhci_dequeue_state deq_state; 528 struct xhci_dequeue_state deq_state;
529#ifdef CONFIG_USB_HCD_STAT
530 ktime_t stop_time = ktime_get();
531#endif
532 529
533 memset(&deq_state, 0, sizeof(deq_state)); 530 memset(&deq_state, 0, sizeof(deq_state));
534 slot_id = TRB_TO_SLOT_ID(trb->generic.field[3]); 531 slot_id = TRB_TO_SLOT_ID(trb->generic.field[3]);
@@ -593,10 +590,6 @@ static void handle_stopped_endpoint(struct xhci_hcd *xhci,
593 list_del(&cur_td->cancelled_td_list); 590 list_del(&cur_td->cancelled_td_list);
594 591
595 /* Clean up the cancelled URB */ 592 /* Clean up the cancelled URB */
596#ifdef CONFIG_USB_HCD_STAT
597 hcd_stat_update(xhci->tp_stat, cur_td->urb->actual_length,
598 ktime_sub(stop_time, cur_td->start_time));
599#endif
600 /* Doesn't matter what we pass for status, since the core will 593 /* Doesn't matter what we pass for status, since the core will
601 * just overwrite it (because the URB has been unlinked). 594 * just overwrite it (because the URB has been unlinked).
602 */ 595 */