diff options
author | Ruan Jinjie <ruanjinjie@huawei.com> | 2023-07-27 10:11:28 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-08-10 07:58:36 +0200 |
commit | c84db0f2302966cf6396e4258c547884cb11e381 (patch) | |
tree | 739ef09491d7d0c4cc0b6c3c63dba91379023c6d /drivers | |
parent | f7692d1d0af9d002cf3bf3edf5c56995cc98e535 (diff) | |
download | linux-stable-c84db0f2302966cf6396e4258c547884cb11e381.tar.gz linux-stable-c84db0f2302966cf6396e4258c547884cb11e381.tar.bz2 linux-stable-c84db0f2302966cf6396e4258c547884cb11e381.zip |
media: rcar_jpu: Remove redundant dev_err()
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/platform/renesas/rcar_jpu.c | 4 |
1 files changed, 1 insertions, 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); |