Commit acd877f4 authored by Felipe Balbi's avatar Felipe Balbi

usb: phy: qcom: use PTR_ERR_OR_ZERO()

coccicheck found this pattern which could be
converted to PTR_ERR_OR_ZERO(). No functional
changes.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 46cdd190
...@@ -240,10 +240,7 @@ static int phy_8x16_read_devicetree(struct phy_8x16 *qphy) ...@@ -240,10 +240,7 @@ static int phy_8x16_read_devicetree(struct phy_8x16 *qphy)
qphy->switch_gpio = devm_gpiod_get_optional(dev, "switch", qphy->switch_gpio = devm_gpiod_get_optional(dev, "switch",
GPIOD_OUT_LOW); GPIOD_OUT_LOW);
if (IS_ERR(qphy->switch_gpio)) return PTR_ERR_OR_ZERO(qphy->switch_gpio);
return PTR_ERR(qphy->switch_gpio);
return 0;
} }
static int phy_8x16_reboot_notify(struct notifier_block *this, static int phy_8x16_reboot_notify(struct notifier_block *this,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment