Skip to contentSkip to conversation

video: fbdev: pxafb: Remove unnecessary print function dev_err()

PATCH Applied [email protected] 2 participants 2 messages Nov 6, 2022 – Nov 7, 2022 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: fbdev: pxafb: Remove unnecessary print function dev_err()

Eliminate the follow coccicheck warning:

./drivers/video/fbdev/pxafb.c:2330:2-9: line 2330 is redundant because platform_get_irq() already prints an error

---
 drivers/video/fbdev/pxafb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/video/fbdev/pxafb.c +0 -1
index 696ac5431180..c46ed78298ae 100644
@@ -2327,7 +2327,6 @@ static int pxafb_probe(struct platform_device *dev)
 
 	irq = platform_get_irq(dev, 0);
 	if (irq < 0) {
-		dev_err(&dev->dev, "no IRQ defined\n");
 		ret = -ENODEV;
 		goto failed_free_mem;
 	}
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 6 lines · On 11/6/22 15:16, [email protected] wrote:

Eliminate the follow coccicheck warning:

./drivers/video/fbdev/pxafb.c:2330:2-9: line 2330 is redundant because platform_get_irq() already prints an error

applied.
Thanks!
Helge

Quoted 16 lines
---
  drivers/video/fbdev/pxafb.c | 1 -
  1 file changed, 1 deletion(-)
drivers/video/fbdev/pxafb.c +0 -1
index 696ac5431180..c46ed78298ae 100644
@@ -2327,7 +2327,6 @@ static int pxafb_probe(struct platform_device *dev)
 
  	irq = platform_get_irq(dev, 0);
  	if (irq < 0) {
-		dev_err(&dev->dev, "no IRQ defined\n");
  		ret = -ENODEV;
  		goto failed_free_mem;
  	}