OSDN Git Service

fbdev: omap: Remove unnecessary print function dev_err()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 24 Aug 2022 11:44:55 +0000 (19:44 +0800)
committerHelge Deller <deller@gmx.de>
Wed, 24 Aug 2022 19:53:41 +0000 (21:53 +0200)
The print function dev_err() is redundant because platform_get_irq()
already prints an error.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1957
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/omap/omapfb_main.c

index fbb3af8..17cda57 100644 (file)
@@ -1643,14 +1643,12 @@ static int omapfb_do_probe(struct platform_device *pdev,
        }
        fbdev->int_irq = platform_get_irq(pdev, 0);
        if (fbdev->int_irq < 0) {
-               dev_err(&pdev->dev, "unable to get irq\n");
                r = ENXIO;
                goto cleanup;
        }
 
        fbdev->ext_irq = platform_get_irq(pdev, 1);
        if (fbdev->ext_irq < 0) {
-               dev_err(&pdev->dev, "unable to get irq\n");
                r = ENXIO;
                goto cleanup;
        }