public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: mali-c55: core: Remove redundant dev_err()
@ 2026-01-15  2:35 Chen Ni
  2026-01-15  7:38 ` Dan Scally
  2026-01-15 14:17 ` Jacopo Mondi
  0 siblings, 2 replies; 3+ messages in thread
From: Chen Ni @ 2026-01-15  2:35 UTC (permalink / raw)
  To: dan.scally, jacopo.mondi, mchehab; +Cc: linux-media, linux-kernel, Chen Ni

The platform_get_irq_byname() function already prints an error message
internally upon failure using dev_err_probe(). Therefore, the explicit
dev_err() is redundant and results in duplicate error logs.

Remove the redundant dev_err() call to clean up the error path.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 drivers/media/platform/arm/mali-c55/mali-c55-core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/media/platform/arm/mali-c55/mali-c55-core.c b/drivers/media/platform/arm/mali-c55/mali-c55-core.c
index 43b834459ccf..ab8f7f6f3be1 100644
--- a/drivers/media/platform/arm/mali-c55/mali-c55-core.c
+++ b/drivers/media/platform/arm/mali-c55/mali-c55-core.c
@@ -868,7 +868,6 @@ static int mali_c55_probe(struct platform_device *pdev)
 	mali_c55->irqnum = platform_get_irq(pdev, 0);
 	if (mali_c55->irqnum < 0) {
 		ret = mali_c55->irqnum;
-		dev_err(dev, "failed to get interrupt\n");
 		goto err_deinit_media_frameworks;
 	}
 
-- 
2.25.1


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

end of thread, other threads:[~2026-01-15 14:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-15  2:35 [PATCH] media: mali-c55: core: Remove redundant dev_err() Chen Ni
2026-01-15  7:38 ` Dan Scally
2026-01-15 14:17 ` Jacopo Mondi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox