From: Valentina Manea Date: Wed, 23 Oct 2013 07:29:55 +0000 (+0300) Subject: staging: drm/imx: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1f933fa81652efe2069df2565ffdd83f59e99e01;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: drm/imx: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO This patch fixes coccinelle error regarding usage of IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO. Signed-off-by: Valentina Manea Reviewed-by: Rusty Russell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/imx-drm/imx-ldb.c b/drivers/staging/imx-drm/imx-ldb.c index 926f49339b26..654bf03e05ff 100644 --- a/drivers/staging/imx-drm/imx-ldb.c +++ b/drivers/staging/imx-drm/imx-ldb.c @@ -359,10 +359,8 @@ static int imx_ldb_get_clk(struct imx_ldb *ldb, int chno) sprintf(clkname, "di%d_pll", chno); ldb->clk_pll[chno] = devm_clk_get(ldb->dev, clkname); - if (IS_ERR(ldb->clk_pll[chno])) - return PTR_ERR(ldb->clk_pll[chno]); - return 0; + return PTR_ERR_OR_ZERO(ldb->clk_pll[chno]); } static int imx_ldb_register(struct imx_ldb_channel *imx_ldb_ch)