From: Pawel Laszczak Date: Mon, 13 Jul 2020 10:05:46 +0000 (+0200) Subject: usb: cdns3: core: removed cdns3_get_current_role_driver function X-Git-Tag: Ubuntu-5.10.0-12.13~2217^2~35^2~26 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b20aecff99a2335731bb2ae69c8368dfc356aef7;p=mirror_ubuntu-hirsute-kernel.git usb: cdns3: core: removed cdns3_get_current_role_driver function Function is not used in driver so it can be removed. Signed-off-by: Pawel Laszczak Reviewed-by: Peter Chen Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index 59e5e213a99b..1f77fb5aefbf 100644 --- a/drivers/usb/cdns3/core.c +++ b/drivers/usb/cdns3/core.c @@ -27,13 +27,6 @@ static int cdns3_idle_init(struct cdns3 *cdns); -static inline -struct cdns3_role_driver *cdns3_get_current_role_driver(struct cdns3 *cdns) -{ - WARN_ON(!cdns->roles[cdns->role]); - return cdns->roles[cdns->role]; -} - static int cdns3_role_start(struct cdns3 *cdns, enum usb_role role) { int ret;