From: zhong jiang Date: Thu, 16 Aug 2018 15:58:54 +0000 (+0800) Subject: phy:phy-brcm-usb: Use PTR_ERR_OR_ZERO to replace the open coded version X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~6067^2~26^2~30 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=528648143354e0551087adfad27c174083316ca3;p=linux.git phy:phy-brcm-usb: Use PTR_ERR_OR_ZERO to replace the open coded version PTR_ERR_OR_ZERO has implemented the if(IS_ERR(...)) + PTR_ERR, So just replace them rather than duplicating its implement. Signed-off-by: zhong jiang Signed-off-by: Kishon Vijay Abraham I --- diff --git a/drivers/phy/broadcom/phy-brcm-usb.c b/drivers/phy/broadcom/phy-brcm-usb.c index d1dab36fa5b7..f59b1dc30399 100644 --- a/drivers/phy/broadcom/phy-brcm-usb.c +++ b/drivers/phy/broadcom/phy-brcm-usb.c @@ -372,10 +372,8 @@ static int brcm_usb_phy_probe(struct platform_device *pdev) clk_disable(priv->usb_30_clk); phy_provider = devm_of_phy_provider_register(dev, brcm_usb_phy_xlate); - if (IS_ERR(phy_provider)) - return PTR_ERR(phy_provider); - return 0; + return PTR_ERR_OR_ZERO(phy_provider); } #ifdef CONFIG_PM_SLEEP