DORMANTno replies

[PATCH] hfsplus: Delete an error message for a failed memory allocation in hfsplus_create_attributes

From: SF Markus Elfring <hidden>
Date: 2017-08-19 10:00:20
Also in: linux-fsdevel, lkml
Subsystem: filesystems (vfs and infrastructure), hfsplus filesystem, the rest · Maintainers: Alexander Viro, Christian Brauner, Viacheslav Dubeyko, John Paul Adrian Glaubitz, Yangtao Li, Linus Torvalds

From: Markus Elfring <redacted>
Date: Sat, 19 Aug 2017 11:34:48 +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 <redacted>
---
 fs/hfsplus/xattr.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/fs/hfsplus/xattr.c b/fs/hfsplus/xattr.c
index d37bb88dc746..b921eeb8cc31 100644
--- a/fs/hfsplus/xattr.c
+++ b/fs/hfsplus/xattr.c
@@ -209,7 +209,6 @@ static int hfsplus_create_attributes_file(struct super_block *sb)
 
 	buf = kzalloc(node_size, GFP_NOFS);
 	if (!buf) {
-		pr_err("failed to allocate memory for header node\n");
 		err = -ENOMEM;
 		goto end_attr_file_creation;
 	}
-- 
2.14.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help