From: Punit Agrawal Date: Mon, 19 Mar 2018 17:36:08 +0000 (+0000) Subject: video: rk3399_mipi: Combine NULL check into IS_ERR_OR_NULL() X-Git-Tag: v2018.05-rc1~5^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a89c725d2c6082e42be2ff59a48c967974ead77f;p=u-boot video: rk3399_mipi: Combine NULL check into IS_ERR_OR_NULL() Signed-off-by: Punit Agrawal Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- diff --git a/drivers/video/rockchip/rk3399_mipi.c b/drivers/video/rockchip/rk3399_mipi.c index c6987ff042..b936fcec9b 100644 --- a/drivers/video/rockchip/rk3399_mipi.c +++ b/drivers/video/rockchip/rk3399_mipi.c @@ -128,7 +128,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;