Skip to content

Commit bde66d2

Browse files
Epicuriusgregkh
authored andcommitted
usb: xhci: remove obsolete sanity check debug messages
Remove debug messages that served as sanity checks during the initial implementation phase of underrun/overrun completion codes. These checks are now unnecessary. Instead, improve the default debug messages for underrun/overrun events, so that they are consistent with the reset of the completion codes. Signed-off-by: Niklas Neronin <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4306194 commit bde66d2

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

drivers/usb/host/xhci-ring.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2719,18 +2719,12 @@ static int handle_tx_event(struct xhci_hcd *xhci,
27192719
* a Ring Overrun Event for IN Isoch endpoint or Ring
27202720
* Underrun Event for OUT Isoch endpoint.
27212721
*/
2722-
xhci_dbg(xhci, "underrun event on endpoint\n");
2723-
if (!list_empty(&ep_ring->td_list))
2724-
xhci_dbg(xhci, "Underrun Event for slot %u ep %d still with TDs queued?\n",
2725-
slot_id, ep_index);
2722+
xhci_dbg(xhci, "Underrun event on slot %u ep %u\n", slot_id, ep_index);
27262723
if (ep->skip)
27272724
break;
27282725
return 0;
27292726
case COMP_RING_OVERRUN:
2730-
xhci_dbg(xhci, "overrun event on endpoint\n");
2731-
if (!list_empty(&ep_ring->td_list))
2732-
xhci_dbg(xhci, "Overrun Event for slot %u ep %d still with TDs queued?\n",
2733-
slot_id, ep_index);
2727+
xhci_dbg(xhci, "Overrun event on slot %u ep %u\n", slot_id, ep_index);
27342728
if (ep->skip)
27352729
break;
27362730
return 0;

0 commit comments

Comments
 (0)