diff options
author | Saurabh Karajgaonkar <skarajga@visteon.com> | 2015-08-04 17:01:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-05 22:29:20 +0300 |
commit | 082155eabfabd9148cc7e81c995e2c482075ccc3 (patch) | |
tree | 162a28ba20013a835a496c8fbe92fbbeed5d83a7 /drivers/usb/phy | |
parent | 135551ea1abd5038d14825514df7e259fd500033 (diff) | |
download | linux-082155eabfabd9148cc7e81c995e2c482075ccc3.tar.xz |
usb: phy: phy-mxs-usb: Simplify return statement
Replace redundant variable use in return statement.
Signed-off-by: Saurabh Karajgaonkar <skarajga@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r-- | drivers/usb/phy/phy-mxs-usb.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c index 3fcc0483a081..4d863ebc117c 100644 --- a/drivers/usb/phy/phy-mxs-usb.c +++ b/drivers/usb/phy/phy-mxs-usb.c @@ -506,11 +506,7 @@ static int mxs_phy_probe(struct platform_device *pdev) device_set_wakeup_capable(&pdev->dev, true); - ret = usb_add_phy_dev(&mxs_phy->phy); - if (ret) - return ret; - - return 0; + return usb_add_phy_dev(&mxs_phy->phy); } static int mxs_phy_remove(struct platform_device *pdev) |