mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
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 <zhongjiang@huawei.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
This commit is contained in:
parent
eee0e5daa7
commit
5286481433
@ -372,10 +372,8 @@ static int brcm_usb_phy_probe(struct platform_device *pdev)
|
|||||||
clk_disable(priv->usb_30_clk);
|
clk_disable(priv->usb_30_clk);
|
||||||
|
|
||||||
phy_provider = devm_of_phy_provider_register(dev, brcm_usb_phy_xlate);
|
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
|
#ifdef CONFIG_PM_SLEEP
|
||||||
|
Loading…
Reference in New Issue
Block a user