]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
xhci: remove unused hcd_index()
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 7 Dec 2018 14:19:31 +0000 (16:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Dec 2018 14:40:41 +0000 (15:40 +0100)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.h

index b57b7934fae1095069a81977da1753289edc37cf..3c6b5049464ae3b13184985bd67e2f36eb47fd7f 100644 (file)
@@ -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;