All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] video: rk3288_mipi: Combine NULL check into IS_ERR_OR_NULL()
@ 2018-03-19 17:36 Punit Agrawal
  2018-03-19 17:36 ` [U-Boot] [PATCH 2/2] video: rk3399_mipi: " Punit Agrawal
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Punit Agrawal @ 2018-03-19 17:36 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
---
 drivers/video/rockchip/rk3288_mipi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/rockchip/rk3288_mipi.c b/drivers/video/rockchip/rk3288_mipi.c
index 27d125f77e..a7fa9c5110 100644
--- a/drivers/video/rockchip/rk3288_mipi.c
+++ b/drivers/video/rockchip/rk3288_mipi.c
@@ -136,7 +136,7 @@ static int rk_mipi_ofdata_to_platdata(struct udevice *dev)
 	struct rk_mipi_priv *priv = dev_get_priv(dev);
 
 	priv->grf = syscon_get_first_range(ROCKCHIP_SYSCON_GRF);
-	if (!priv->grf || IS_ERR(priv->grf)) {
+	if (IS_ERR_OR_NULL(priv->grf)) {
 		debug("%s: Get syscon grf failed (ret=%p)\n",
 		      __func__, priv->grf);
 		return  -ENXIO;
-- 
2.16.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-03-28 21:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-19 17:36 [U-Boot] [PATCH 1/2] video: rk3288_mipi: Combine NULL check into IS_ERR_OR_NULL() Punit Agrawal
2018-03-19 17:36 ` [U-Boot] [PATCH 2/2] video: rk3399_mipi: " Punit Agrawal
2018-03-19 19:28   ` Heinrich Schuchardt
2018-03-28 21:36   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-03-28 21:36   ` Philipp Tomsich
2018-03-28 21:45   ` Philipp Tomsich
2018-03-19 19:30 ` [U-Boot] [PATCH 1/2] video: rk3288_mipi: " Heinrich Schuchardt
2018-03-28 21:36 ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-03-28 21:36 ` Philipp Tomsich
2018-03-28 21:45 ` Philipp Tomsich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.