summaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/core.c
diff options
context:
space:
mode:
authorPawel Laszczak <pawell@cadence.com>2020-07-13 12:05:47 +0200
committerFelipe Balbi <balbi@kernel.org>2020-07-24 15:45:12 +0200
commit27afe1661275213adee3f8dc08b3610abcbca678 (patch)
tree1b5a07bbaf10c8ddc820518a8d57c54ba4357731 /drivers/usb/cdns3/core.c
parentusb: cdns3: core: removed cdns3_get_current_role_driver function (diff)
downloadlinux-27afe1661275213adee3f8dc08b3610abcbca678.tar.xz
linux-27afe1661275213adee3f8dc08b3610abcbca678.zip
usb: cdns3: drd: removed not needed variables initialization
Patch remove some variables initialization from core.c and drd.c file. Reviewed-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Pawel Laszczak <pawell@cadence.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/core.c')
-rw-r--r--drivers/usb/cdns3/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c
index 1f77fb5aefbf..c498b585eb13 100644
--- a/drivers/usb/cdns3/core.c
+++ b/drivers/usb/cdns3/core.c
@@ -86,7 +86,7 @@ static int cdns3_core_init_role(struct cdns3 *cdns)
struct device *dev = cdns->dev;
enum usb_dr_mode best_dr_mode;
enum usb_dr_mode dr_mode;
- int ret = 0;
+ int ret;
dr_mode = usb_get_dr_mode(dev);
cdns->role = USB_ROLE_NONE;
@@ -177,7 +177,7 @@ static int cdns3_core_init_role(struct cdns3 *cdns)
goto err;
}
- return ret;
+ return 0;
err:
cdns3_exit_roles(cdns);
return ret;