drm/fsl-dcu: Remove redundant dev_err()
authorChen Ni <nichen@iscas.ac.cn>
Wed, 18 Sep 2024 07:48:41 +0000 (15:48 +0800)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 19 Oct 2024 14:36:00 +0000 (17:36 +0300)
There is no need to call the dev_err() function directly to print a
custom message when handling an error from platform_get_irq() function
as it is going to display an appropriate error message in case of a
failure.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Acked-by: Alison Wang <alison.wang@nxp.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240918074841.2221210-1-nichen@iscas.ac.cn
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c

index 6886487..91a48d7 100644 (file)
@@ -287,10 +287,8 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev)
        }
 
        fsl_dev->irq = platform_get_irq(pdev, 0);
-       if (fsl_dev->irq < 0) {
-               dev_err(dev, "failed to get irq\n");
+       if (fsl_dev->irq < 0)
                return fsl_dev->irq;
-       }
 
        fsl_dev->regmap = devm_regmap_init_mmio(dev, base,
                        &fsl_dcu_regmap_config);