media: rcar_jpu: Remove redundant dev_err()
authorRuan Jinjie <ruanjinjie@huawei.com>
Thu, 27 Jul 2023 10:11:28 +0000 (10:11 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Aug 2023 05:58:36 +0000 (07:58 +0200)
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: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/renesas/rcar_jpu.c

index 416b982..fff349e 100644 (file)
@@ -1600,10 +1600,8 @@ static int jpu_probe(struct platform_device *pdev)
 
        /* interrupt service routine registration */
        jpu->irq = ret = platform_get_irq(pdev, 0);
-       if (ret < 0) {
-               dev_err(&pdev->dev, "cannot find IRQ\n");
+       if (ret < 0)
                return ret;
-       }
 
        ret = devm_request_irq(&pdev->dev, jpu->irq, jpu_irq_handler, 0,
                               dev_name(&pdev->dev), jpu);