[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190203000622.30856-1-chrisadr@gentoo.org>
Date: Sat, 2 Feb 2019 19:06:22 -0500
From: Christopher Diaz Riveros <chrisadr@...too.org>
To: airlied@...ux.ie, daniel@...ll.ch, wens@...e.org
Cc: Christopher Diaz Riveros <chrisadr@...too.org>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH-next] drm/sun4i: Use PTR_ERR_OR_ZERO in sun8i_phy_clk_create()
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
Signed-off-by: Christopher Diaz Riveros <chrisadr@...too.org>
---
drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c b/drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c
index a4d31fe3abff..d52f581797f0 100644
--- a/drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c
+++ b/drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c
@@ -171,8 +171,6 @@ int sun8i_phy_clk_create(struct sun8i_hdmi_phy *phy, struct device *dev,
priv->hw.init = &init;
phy->clk_phy = devm_clk_register(dev, &priv->hw);
- if (IS_ERR(phy->clk_phy))
- return PTR_ERR(phy->clk_phy);
- return 0;
+ return PTR_ERR_OR_ZERO(phy->clk_phy);
}
--
2.20.1
Powered by blists - more mailing lists