Skip to contentSkip to conversation

video: bf537-lq035: Delete an error message for a failed memory allocation in bfin_lq035_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: bf537-lq035: Delete an error message for a failed memory allocation in bfin_lq035_probe()

From: Markus Elfring <[email protected]>
Date: Mon, 27 Nov 2017 17:27:51 +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/bf537-lq035.c | 1 -
 1 file changed, 1 deletion(-)
drivers/video/fbdev/bf537-lq035.c +0 -1
index ef29fb425122..5142e5724f57 100644
@@ -741,7 +741,6 @@ static int bfin_lq035_probe(struct platform_device *pdev)
 						    sizeof(u32) * 16,
 						    GFP_KERNEL);
 	if (bfin_lq035_fb.pseudo_palette = NULL) {
-		pr_err("failed to allocate pseudo_palette\n");
 		ret = -ENOMEM;
 		goto out_table;
 	}
Signature · 1 line
2.15.0