Skip to contentSkip to conversation

video: fbdev: delete redundant printing of return value

PATCH New Wang Qing 1 participant 1 message Mar 11, 2021 Framebuffer layer

lore
Share & tools
lore

Wang Qing

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/video/fbdev/pxa3xx-gcu.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/video/fbdev/pxa3xx-gcu.c +1 -3
index 4279e13..9d2aed7
@@ -613,10 +613,8 @@ static int pxa3xx_gcu_probe(struct platform_device *pdev)
 
 	/* request the IRQ */
 	irq = platform_get_irq(pdev, 0);
-	if (irq < 0) {
-		dev_err(dev, "no IRQ defined: %d\n", irq);
+	if (irq < 0)
 		return irq;
-	}
 
 	ret = devm_request_irq(dev, irq, pxa3xx_gcu_handle_irq,
 			       0, DRV_NAME, priv);
Signature · 1 line
2.7.4