Skip to content
Permalink
Browse files
video: fbdev: delete redundant printing of return value
platform_get_irq() has already checked and printed the return value,
the printing here is nothing special, it is not necessary at all.

Signed-off-by: Wang Qing <wangqing@vivo.com>
  • Loading branch information
Wang Qing authored and intel-lab-lkp committed Mar 11, 2021
1 parent a74e6a0 commit 6d93756a48a2f91e8ac0cfdfd8734d30080706c2
Showing 1 changed file with 1 addition and 3 deletions.
@@ -2326,11 +2326,9 @@ static int pxafb_probe(struct platform_device *dev)
}

irq = platform_get_irq(dev, 0);
if (irq < 0) {
dev_err(&dev->dev, "no IRQ defined\n");
if (irq < 0)
ret = -ENODEV;
goto failed_free_mem;
}

ret = devm_request_irq(&dev->dev, irq, pxafb_handle_irq, 0, "LCD", fbi);
if (ret) {

0 comments on commit 6d93756

Please sign in to comment.