diff options
author | Michal Nazarewicz <mina86@mina86.com> | 2013-11-10 13:37:37 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-11-25 11:25:39 -0500 |
commit | 39189c98d161c292e7f80fe50da00d33193362b9 (patch) | |
tree | 3d92a42ed535d259d20e40bfc8b589e99263e10e | |
parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) |
usb: phy: remove dead code
Commit [4d175f34: usb: phy: nop: Defer clock prepare until PHY init]
removed a goto reaching behind a “return ret” at the end of the function
thus removing the only possible way that statement could be reached, and
so rendering it a dead code. This commit cleans it up by removing said
dead code.
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/phy/phy-am335x.c | 2 | ||||
-rw-r--r-- | drivers/usb/phy/phy-generic.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/phy/phy-am335x.c b/drivers/usb/phy/phy-am335x.c index 6370e50649d7..48d41abd1b6b 100644 --- a/drivers/usb/phy/phy-am335x.c +++ b/drivers/usb/phy/phy-am335x.c | |||
@@ -66,8 +66,6 @@ static int am335x_phy_probe(struct platform_device *pdev) | |||
66 | platform_set_drvdata(pdev, am_phy); | 66 | platform_set_drvdata(pdev, am_phy); |
67 | 67 | ||
68 | return 0; | 68 | return 0; |
69 | |||
70 | return ret; | ||
71 | } | 69 | } |
72 | 70 | ||
73 | static int am335x_phy_remove(struct platform_device *pdev) | 71 | static int am335x_phy_remove(struct platform_device *pdev) |
diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c index fce3a9e9bb5d..db4fc22e4aa6 100644 --- a/drivers/usb/phy/phy-generic.c +++ b/drivers/usb/phy/phy-generic.c | |||
@@ -271,8 +271,6 @@ static int usb_phy_gen_xceiv_probe(struct platform_device *pdev) | |||
271 | platform_set_drvdata(pdev, nop); | 271 | platform_set_drvdata(pdev, nop); |
272 | 272 | ||
273 | return 0; | 273 | return 0; |
274 | |||
275 | return err; | ||
276 | } | 274 | } |
277 | 275 | ||
278 | static int usb_phy_gen_xceiv_remove(struct platform_device *pdev) | 276 | static int usb_phy_gen_xceiv_remove(struct platform_device *pdev) |