summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorTang Bin <tangbin@cmss.chinamobile.com>2021-10-21 06:09:38 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-11-30 14:06:48 +0300
commitaf88c2adbb72a09ab1bb5c37ba388c98fecca69b (patch)
tree5b4b6628998cca85564eac11827f0f2962ae7291 /drivers/media
parentd5e9bddb28057615fed653dcfa25f96896b1ff04 (diff)
downloadlinux-af88c2adbb72a09ab1bb5c37ba388c98fecca69b.tar.xz
media: rcar_fdp1: Fix the correct variable assignments
In the function fdp1_probe(), when get irq failed, the function platform_get_irq() log an error message, so remove redundant message here. And the variable type of "ret" is int, the "fdp1->irq" is unsigned int, when irq failed, this place maybe wrong, thus fix it. Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/rcar_fdp1.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/media/platform/rcar_fdp1.c b/drivers/media/platform/rcar_fdp1.c
index 19de3c19bcca..37ecf489d112 100644
--- a/drivers/media/platform/rcar_fdp1.c
+++ b/drivers/media/platform/rcar_fdp1.c
@@ -2287,11 +2287,10 @@ static int fdp1_probe(struct platform_device *pdev)
return PTR_ERR(fdp1->regs);
/* Interrupt service routine registration */
- fdp1->irq = ret = platform_get_irq(pdev, 0);
- if (ret < 0) {
- dev_err(&pdev->dev, "cannot find IRQ\n");
+ ret = platform_get_irq(pdev, 0);
+ if (ret < 0)
return ret;
- }
+ fdp1->irq = ret;
ret = devm_request_irq(&pdev->dev, fdp1->irq, fdp1_irq_handler, 0,
dev_name(&pdev->dev), fdp1);