]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
usb: cdns3: core: removed cdns3_get_current_role_driver function
authorPawel Laszczak <pawell@cadence.com>
Mon, 13 Jul 2020 10:05:46 +0000 (12:05 +0200)
committerFelipe Balbi <balbi@kernel.org>
Fri, 24 Jul 2020 13:45:12 +0000 (16:45 +0300)
Function is not used in driver so it can be removed.

Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/cdns3/core.c

index 59e5e213a99bbdc9063e1bba006cc355aeaa8be3..1f77fb5aefbf4a3bcfd1d84cc9a7c013e0922c69 100644 (file)
 
 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;