diff mbox series

drm/fsl-dcu: Delete an error message in fsl_dcu_drm_probe()

Message ID 1c108582-ba46-153e-7975-f6cfd82d57c6@web.de (mailing list archive)
State New, archived
Headers show
Series drm/fsl-dcu: Delete an error message in fsl_dcu_drm_probe() | expand

Commit Message

Markus Elfring April 4, 2020, 8 p.m. UTC
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 4 Apr 2020 21:54:31 +0200

The function “platform_get_irq” can log an error already.
Thus omit a redundant message for the exception handling in the
calling function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--
2.26.0
diff mbox series

Patch

diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
index f15d2e7967a3..9e8ce0774db9 100644
--- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
+++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
@@ -268,10 +268,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);