diff options
author | Saurabh Karajgaonkar <skarajga@visteon.com> | 2015-08-04 10:02:03 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-08-04 12:02:05 -0400 |
commit | c5673f5ce4c0faa97df419877bcdebbd76d43151 (patch) | |
tree | 1467b30ee4f24bbf8007b198c6df23902f8d8e3a /drivers/usb/phy | |
parent | 4b68b50fd45e2f429da574c74d9a3788a861434f (diff) |
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.c | 6 |
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) | |||
96 | 96 | ||
97 | platform_set_drvdata(pdev, k_phy); | 97 | platform_set_drvdata(pdev, k_phy); |
98 | 98 | ||
99 | ret = usb_add_phy_dev(&k_phy->usb_phy_gen.phy); | 99 | return usb_add_phy_dev(&k_phy->usb_phy_gen.phy); |
100 | if (ret) | ||
101 | return ret; | ||
102 | |||
103 | return 0; | ||
104 | } | 100 | } |
105 | 101 | ||
106 | static int keystone_usbphy_remove(struct platform_device *pdev) | 102 | static int keystone_usbphy_remove(struct platform_device *pdev) |