]> Git Repo - linux.git/commitdiff
usb: cdns3: core: removed cdns3_get_current_role_driver function
authorPawel Laszczak <[email protected]>
Mon, 13 Jul 2020 10:05:46 +0000 (12:05 +0200)
committerFelipe Balbi <[email protected]>
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 <[email protected]>
Reviewed-by: Peter Chen <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
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;
This page took 0.057844 seconds and 4 git commands to generate.