mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
phy:phy-lantiq-rcu-usb2: 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 <[email protected]> Acked-by: Hauke Mehrtens <[email protected]> Signed-off-by: Kishon Vijay Abraham I <[email protected]>
This commit is contained in:
parent
5286481433
commit
9be08a27a1
1 changed files with 1 additions and 3 deletions
|
|
@ -196,10 +196,8 @@ static int ltq_rcu_usb2_of_parse(struct ltq_rcu_usb2_priv *priv,
|
|||
}
|
||||
|
||||
priv->phy_reset = devm_reset_control_get_optional(dev, "phy");
|
||||
if (IS_ERR(priv->phy_reset))
|
||||
return PTR_ERR(priv->phy_reset);
|
||||
|
||||
return 0;
|
||||
return PTR_ERR_OR_ZERO(priv->phy_reset);
|
||||
}
|
||||
|
||||
static int ltq_rcu_usb2_phy_probe(struct platform_device *pdev)
|
||||
|
|
|
|||
Loading…
Reference in a new issue