Skip to content

Commit

Permalink
media: mtk-jpeg: Remove unnecessary print function dev_err()
Browse files Browse the repository at this point in the history
The print function dev_err() is redundant because
platform_get_irq() already prints an error.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
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>
  • Loading branch information
ISCAS-Vulab authored and mchehab committed Nov 30, 2021
1 parent 3fa2382 commit 92f1b24
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1361,10 +1361,8 @@ static int mtk_jpeg_probe(struct platform_device *pdev)
}

jpeg_irq = platform_get_irq(pdev, 0);
if (jpeg_irq < 0) {
dev_err(&pdev->dev, "Failed to get jpeg_irq %d.\n", jpeg_irq);
if (jpeg_irq < 0)
return jpeg_irq;
}

ret = devm_request_irq(&pdev->dev, jpeg_irq,
jpeg->variant->irq_handler, 0, pdev->name, jpeg);
Expand Down

0 comments on commit 92f1b24

Please sign in to comment.