]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm: Remove unnecessary print function dev_err()
authorYang Li <yang.lee@linux.alibaba.com>
Mon, 13 Jun 2022 01:26:58 +0000 (09:26 +0800)
committerPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 24 Jun 2022 15:04:03 +0000 (17:04 +0200)
The print function dev_err() is redundant because platform_get_irq()
already prints an error.

Eliminate the follow coccicheck warning:
./drivers/gpu/drm/logicvc/logicvc_drm.c:352:2-9: line 352 is redundant
because platform_get_irq() already prints an error

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Acked-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220613012658.85814-1-yang.lee@linux.alibaba.com
drivers/gpu/drm/logicvc/logicvc_drm.c

index 0b983a33f9ff2707a9a6e005a0928db249596b46..65a050176c3370b7e6254a6387ea41a602a67240 100644 (file)
@@ -349,7 +349,6 @@ static int logicvc_drm_probe(struct platform_device *pdev)
 
        irq = platform_get_irq(pdev, 0);
        if (irq < 0) {
-               dev_err(dev, "Failed to get IRQ\n");
                ret = -ENODEV;
                goto error_reserved_mem;
        }