Skip to contentSkip to conversation

xhci: remove unused hcd_index()

PATCH New Mathias Nyman 1 participant 1 message Dec 7, 2018

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

PATCH 3/8 xhci: remove unused hcd_index()

Now that each root hub has their own bus_state strucure the hcd_undex() used to get the correct bus_state strucure is no longer needed.

No functional changes

---
 drivers/usb/host/xhci.h | 7 -------
 1 file changed, 7 deletions(-)
drivers/usb/host/xhci.h +0 -7
index b57b793..3c6b504 100644
@@ -1682,13 +1682,6 @@ struct xhci_bus_state {
  */
 #define	XHCI_MAX_REXIT_TIMEOUT_MS	20
 
-static inline unsigned int hcd_index(struct usb_hcd *hcd)
-{
-	if (hcd->speed >= HCD_USB3)
-		return 0;
-	else
-		return 1;
-}
 struct xhci_port {
 	__le32 __iomem		*addr;
 	int			hw_portnum;