diff mbox series

[1/1] hfsplus: remove unnecessary oom message

Message ID 20210617084944.1279-1-thunder.leizhen@huawei.com (mailing list archive)
State New, archived
Headers show
Series [1/1] hfsplus: remove unnecessary oom message | expand

Commit Message

Leizhen (ThunderTown) June 17, 2021, 8:49 a.m. UTC
Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message

Remove it can help us save a bit of memory.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
 fs/hfsplus/xattr.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/hfsplus/xattr.c b/fs/hfsplus/xattr.c
index e18a472ac937..b21811baab0f 100644
--- a/fs/hfsplus/xattr.c
+++ b/fs/hfsplus/xattr.c
@@ -204,7 +204,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;
 	}