* [PATCH] char/raw: Delete an error message for a failed memory allocation in raw_init()
@ 2017-10-16 13:27 SF Markus Elfring
0 siblings, 0 replies; only message in thread
From: SF Markus Elfring @ 2017-10-16 13:27 UTC (permalink / raw)
To: kernel-janitors, Arnd Bergmann, Greg Kroah-Hartman; +Cc: LKML
From: Markus Elfring <elfring@users.sourceforge.net>
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.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
drivers/char/raw.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/char/raw.c b/drivers/char/raw.c
index 293167c6e254..fa416613e215 100644
--- a/drivers/char/raw.c
+++ b/drivers/char/raw.c
@@ -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;
}
--
2.14.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-10-16 13:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-16 13:27 [PATCH] char/raw: Delete an error message for a failed memory allocation in raw_init() SF Markus Elfring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox