summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurabh Karajgaonkar <skarajga@visteon.com>2015-08-04 14:01:31 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-05 19:29:20 (GMT)
commit082155eabfabd9148cc7e81c995e2c482075ccc3 (patch)
tree162a28ba20013a835a496c8fbe92fbbeed5d83a7
parent135551ea1abd5038d14825514df7e259fd500033 (diff)
downloadlinux-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>
-rw-r--r--drivers/usb/phy/phy-mxs-usb.c6
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 3fcc048..4d863eb 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)