This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: rcar_jpu: Remove redundant dev_err()
Author:  Ruan Jinjie <[email protected]>
Date:    Thu Jul 27 10:11:28 2023 +0000

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 <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>

 drivers/media/platform/renesas/rcar_jpu.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

---

diff --git a/drivers/media/platform/renesas/rcar_jpu.c 
b/drivers/media/platform/renesas/rcar_jpu.c
index 416b9824761f..fff349e45067 100644
--- a/drivers/media/platform/renesas/rcar_jpu.c
+++ b/drivers/media/platform/renesas/rcar_jpu.c
@@ -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);

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to