Skip to contentSkip to conversation

video: fbdev: delete redundant printing of return value

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

Subsystems (2)
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/s3c2410fb.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/video/fbdev/s3c2410fb.c +1 -3
index d8ae525..72dd092
@@ -847,10 +847,8 @@ static int s3c24xxfb_probe(struct platform_device *pdev,
 	display = mach_info->displays + mach_info->default_display;
 
 	irq = platform_get_irq(pdev, 0);
-	if (irq < 0) {
-		dev_err(&pdev->dev, "no irq for device\n");
+	if (irq < 0)
 		return -ENOENT;
-	}
 
 	fbinfo = framebuffer_alloc(sizeof(struct s3c2410fb_info), &pdev->dev);
 	if (!fbinfo)
Signature · 1 line
2.7.4