Skip to contentSkip to conversation

video: auo_k190x: Delete an error message for a failed memory allocation in auok190x_common_probe()

PATCH In review SF Markus Elfring 2 participants 2 messages Nov 27, 2017 – Apr 26, 2018

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

PATCH 1/1 video: auo_k190x: Delete an error message for a failed memory allocation in auok190x_common_probe()

From: Markus Elfring <[email protected]>
Date: Mon, 27 Nov 2017 17:53:05 +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/auo_k190x.c | 1 -
 1 file changed, 1 deletion(-)
drivers/video/fbdev/auo_k190x.c +0 -1
index 0d06038324e0..971d155d250f 100644
@@ -1081,7 +1081,6 @@ int auok190x_common_probe(struct platform_device *pdev,
 				     sizeof(struct fb_deferred_io),
 				     GFP_KERNEL);
 	if (!info->fbdefio) {
-		dev_err(info->device, "Failed to allocate memory\n");
 		ret = -ENOMEM;
 		goto err_defio;
 	}
Signature · 1 line
2.15.0
#1 lore raw
Quoted 8 lines · SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Mon, 27 Nov 2017 17:53:05 +0100

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

This issue was detected by using the Coccinelle software.

I've done requested audit regarding multiple fb devices support myself now and it is okay to apply this patch.

Patch queued for 4.18, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics