Skip to content

Commit

Permalink
usb: phy: remove dead code
Browse files Browse the repository at this point in the history
Commit [4d175f3: 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>
  • Loading branch information
Michal Nazarewicz authored and Felipe Balbi committed Nov 25, 2013
1 parent 6ce4eac commit 39189c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/phy/phy-am335x.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ static int am335x_phy_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, am_phy);

return 0;

return ret;
}

static int am335x_phy_remove(struct platform_device *pdev)
Expand Down
2 changes: 0 additions & 2 deletions drivers/usb/phy/phy-generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,6 @@ static int usb_phy_gen_xceiv_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, nop);

return 0;

return err;
}

static int usb_phy_gen_xceiv_remove(struct platform_device *pdev)
Expand Down

0 comments on commit 39189c9

Please sign in to comment.