Skip to contentSkip to conversation

video: bf54x-lq043fb: Delete an error message for a failed memory allocation in bfin_bf54x_probe()

PATCH New SF Markus Elfring 1 participant 1 message Nov 27, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: bf54x-lq043fb: Delete an error message for a failed memory allocation in bfin_bf54x_probe()

From: Markus Elfring <[email protected]>
Date: Mon, 27 Nov 2017 11:04:22 +0100

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

---
 drivers/video/fbdev/bf54x-lq043fb.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/video/fbdev/bf54x-lq043fb.c +0 -3
index 8f1f97c75619..69a8c5d82ad7 100644
@@ -605,9 +605,6 @@ static int bfin_bf54x_probe(struct platform_device *pdev)
 	fbinfo->pseudo_palette = devm_kzalloc(&pdev->dev, sizeof(u32) * 16,
 					      GFP_KERNEL);
 	if (!fbinfo->pseudo_palette) {
-		printk(KERN_ERR DRIVER_NAME
-		       "Fail to allocate pseudo_palette\n");
-
 		ret = -ENOMEM;
 		goto out4;
 	}
Signature · 1 line
2.15.0