Skip to content

Commit

Permalink
usb: phy: phy-keystone: 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 4b68b50 commit c5673f5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/usb/phy/phy-keystone.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c5673f5

Please sign in to comment.