Skip to content

Commit

Permalink
usb: phy: bcm-kona-usb2: Use PTR_ERR_OR_ZERO
Browse files Browse the repository at this point in the history
PTR_ERR_OR_ZERO simplifies the code.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Matt Porter <mporter@linaro.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
  • Loading branch information
Sachin Kamat authored and Kishon Vijay Abraham I committed Mar 1, 2014
1 parent ed093e6 commit e4b9f78
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/phy/phy-bcm-kona-usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,8 @@ static int bcm_kona_usb2_probe(struct platform_device *pdev)

phy_provider = devm_of_phy_provider_register(dev,
of_phy_simple_xlate);
if (IS_ERR(phy_provider))
return PTR_ERR(phy_provider);

return 0;
return PTR_ERR_OR_ZERO(phy_provider);
}

static const struct of_device_id bcm_kona_usb2_dt_ids[] = {
Expand Down

0 comments on commit e4b9f78

Please sign in to comment.