提交 7dcae11f 编写于 作者: Z Zhen Lei 提交者: Linus Torvalds

hfsplus: remove unnecessary oom message

Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message

Remove it can help us save a bit of memory.

Link: https://lkml.kernel.org/r/20210617084944.1279-1-thunder.leizhen@huawei.comSigned-off-by: NZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 f4048e5a
...@@ -204,7 +204,6 @@ static int hfsplus_create_attributes_file(struct super_block *sb) ...@@ -204,7 +204,6 @@ static int hfsplus_create_attributes_file(struct super_block *sb)
buf = kzalloc(node_size, GFP_NOFS); buf = kzalloc(node_size, GFP_NOFS);
if (!buf) { if (!buf) {
pr_err("failed to allocate memory for header node\n");
err = -ENOMEM; err = -ENOMEM;
goto end_attr_file_creation; goto end_attr_file_creation;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册