From: ye xingchen Date: Wed, 10 Aug 2022 06:27:38 +0000 (+0000) Subject: drm/omap: dmm_tiler:Remove the print function dev_err() X-Git-Tag: v6.6.17~3937^2~23^2~1701 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a99509ba6d1a406c2af2666b5f896898c54878b6;p=platform%2Fkernel%2Flinux-rpi.git drm/omap: dmm_tiler:Remove the print function dev_err() From the coccinelle check: ./drivers/gpu/drm/omapdrm/omap_dmm_tiler.c Error:line 817 is redundant because platform_get_irq() already prints an error So,remove the unnecessary print function dev_err() Reported-by: Zeal Robot Signed-off-by: ye xingchen Signed-off-by: Tomi Valkeinen Link: https://patchwork.freedesktop.org/patch/msgid/20220810062738.13554-1-ye.xingchen@zte.com.cn --- diff --git a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c index ac869ac..61a27dd 100644 --- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c @@ -813,10 +813,8 @@ static int omap_dmm_probe(struct platform_device *dev) } omap_dmm->irq = platform_get_irq(dev, 0); - if (omap_dmm->irq < 0) { - dev_err(&dev->dev, "failed to get IRQ resource\n"); + if (omap_dmm->irq < 0) goto fail; - } omap_dmm->dev = &dev->dev;