summaryrefslogtreecommitdiff
path: root/drivers/usb/phy
diff options
context:
space:
mode:
authorSaurabh Karajgaonkar <skarajga@visteon.com>2015-08-04 17:02:03 +0300
committerFelipe Balbi <balbi@ti.com>2015-08-04 19:02:05 +0300
commitc5673f5ce4c0faa97df419877bcdebbd76d43151 (patch)
tree1467b30ee4f24bbf8007b198c6df23902f8d8e3a /drivers/usb/phy
parent4b68b50fd45e2f429da574c74d9a3788a861434f (diff)
downloadlinux-c5673f5ce4c0faa97df419877bcdebbd76d43151.tar.xz
usb: phy: phy-keystone: Simplify return statement
Replace redundant variable use in return statement. Signed-off-by: Saurabh Karajgaonkar <skarajga@visteon.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r--drivers/usb/phy/phy-keystone.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/usb/phy/phy-keystone.c b/drivers/usb/phy/phy-keystone.c
index e0556f7832b5..01d4e4cdbc79 100644
--- a/drivers/usb/phy/phy-keystone.c
+++ b/drivers/usb/phy/phy-keystone.c
@@ -96,11 +96,7 @@ static int keystone_usbphy_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, k_phy);
- ret = usb_add_phy_dev(&k_phy->usb_phy_gen.phy);
- if (ret)
- return ret;
-
- return 0;
+ return usb_add_phy_dev(&k_phy->usb_phy_gen.phy);
}
static int keystone_usbphy_remove(struct platform_device *pdev)