Skip to content

Commit

Permalink
phy: miphy28lp: 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: Axel Lin <[email protected]>
Acked-by: Gabriel Fernandez<[email protected]>
Signed-off-by: Kishon Vijay Abraham I <[email protected]>
  • Loading branch information
AxelLin authored and kishon committed Mar 10, 2015
1 parent f8f5539 commit 320c3fc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/phy/phy-miphy28lp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1258,10 +1258,7 @@ static int miphy28lp_probe(struct platform_device *pdev)
}

provider = devm_of_phy_provider_register(&pdev->dev, miphy28lp_xlate);
if (IS_ERR(provider))
return PTR_ERR(provider);

return 0;
return PTR_ERR_OR_ZERO(provider);
}

static const struct of_device_id miphy28lp_of_match[] = {
Expand Down

0 comments on commit 320c3fc

Please sign in to comment.