Skip to content

Commit

Permalink
usb: phy: phy-mxs-usb: Simplify return statement
Browse files Browse the repository at this point in the history
Replace redundant variable use in return statement.

Signed-off-by: Saurabh Karajgaonkar <skarajga@visteon.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Saurabh Karajgaonkar authored and Felipe Balbi committed Aug 4, 2015
1 parent 3f217e9 commit 4b68b50
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/usb/phy/phy-mxs-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4b68b50

Please sign in to comment.