diff mbox series

[3/8] xhci: remove unused hcd_index()

Message ID 1544192376-6619-4-git-send-email-mathias.nyman@linux.intel.com (mailing list archive)
State Mainlined
Commit 1c2d81cc287c59161b19c5810f0091fe33448e07
Headers show
Series xhci features for usb-next | expand

Commit Message

Mathias Nyman Dec. 7, 2018, 2:19 p.m. UTC
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

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
---
 drivers/usb/host/xhci.h | 7 -------
 1 file changed, 7 deletions(-)
diff mbox series

Patch

diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index b57b793..3c6b504 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -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;