Skip to contentSkip to conversation

char/raw: Delete an error message for a failed memory allocation in raw_init()

PATCH New SF Markus Elfring 1 participant 1 message Oct 16, 2017

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

PATCH 1/1 char/raw: Delete an error message for a failed memory allocation in raw_init()

From: Markus Elfring <[email protected]>
Date: Mon, 16 Oct 2017 15:22:10 +0200

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

This issue was detected by using the Coccinelle software.

---
 drivers/char/raw.c | 1 -
 1 file changed, 1 deletion(-)
drivers/char/raw.c +0 -1
index 293167c6e254..fa416613e215 100644
@@ -323,7 +323,6 @@ static int __init raw_init(void)
 
 	raw_devices = vzalloc(sizeof(struct raw_device_data) * max_raw_minors);
 	if (!raw_devices) {
-		printk(KERN_ERR "Not enough memory for raw device structures\n");
 		ret = -ENOMEM;
 		goto error;
 	}
Signature · 1 line
2.14.2