Skip to contentSkip to conversation

usb: ohci-sa1111: remove unused dump_hci_status() debug helper

PATCH In review Zain Aboobacker 2 participants 2 messages Sep 26 – Sep 27

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: ohci-sa1111: remove unused dump_hci_status() debug helper

dump_hci_status() is compiled out with #if 0 and has no callers. Remove the dead code.

Assisted-by Claude:claude-opus-5-5
---
 drivers/usb/host/ohci-sa1111.c | 14 --------------
 1 file changed, 14 deletions(-)
drivers/usb/host/ohci-sa1111.c +0 -14
index aca0338a2983..7e500c772616 100644
@@ -40,20 +40,6 @@
 #define USB_STATUS_NHCIMFCLR      (1 << 10)
 #define USB_STATUS_USBPWRSENSE    (1 << 11)
 
-#if 0
-static void dump_hci_status(struct usb_hcd *hcd, const char *label)
-{
-	unsigned long status = readl_relaxed(hcd->regs + USB_STATUS);
-
-	printk(KERN_DEBUG "%s USB_STATUS = { %s%s%s%s%s}\n", label,
-	     ((status & USB_STATUS_IRQHCIRMTWKUP) ? "IRQHCIRMTWKUP " : ""),
-	     ((status & USB_STATUS_IRQHCIBUFFACC) ? "IRQHCIBUFFACC " : ""),
-	     ((status & USB_STATUS_NIRQHCIM) ? "" : "IRQHCIM "),
-	     ((status & USB_STATUS_NHCIMFCLR) ? "" : "HCIMFCLR "),
-	     ((status & USB_STATUS_USBPWRSENSE) ? "USBPWRSENSE " : ""));
-}
-#endif
-
 static int ohci_sa1111_reset(struct usb_hcd *hcd)
 {
 	struct ohci_hcd *ohci = hcd_to_ohci(hcd);
Signature · 1 line
2.53.0