USB: core, wusbcore: use bus_to_hcd
Use bus_to_hcd() instead of open-coding it. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
69ab55d7be
commit
6ae706aeaf
@@ -2659,7 +2659,7 @@ static unsigned hub_is_wusb(struct usb_hub *hub)
|
||||
struct usb_hcd *hcd;
|
||||
if (hub->hdev->parent != NULL) /* not a root hub? */
|
||||
return 0;
|
||||
hcd = container_of(hub->hdev->bus, struct usb_hcd, self);
|
||||
hcd = bus_to_hcd(hub->hdev->bus);
|
||||
return hcd->wireless;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user