]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: mali-c55: core: Remove redundant dev_err()
authorChen Ni <nichen@iscas.ac.cn>
Thu, 15 Jan 2026 02:35:16 +0000 (10:35 +0800)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 19 May 2026 07:01:49 +0000 (09:01 +0200)
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>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/arm/mali-c55/mali-c55-core.c

index 25dc3226d081375df6ebc00cae267ffa3694311a..6505d3be98072698f093fcf25e4e87e150168788 100644 (file)
@@ -833,7 +833,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;
        }