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.com Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -204,7 +204,6 @@ check_attr_tree_state_again:
|
|||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user