hfsplus: remove unnecessary oom message
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 1 Jul 2021 01:56:37 +0000 (18:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Jul 2021 18:06:06 +0000 (11:06 -0700)
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>
fs/hfsplus/xattr.c

index 4d169c5a2673282ce40f1066d3161b62189b51bb..e2855ceefd3943460d10b32408872e11953ad24c 100644 (file)
@@ -204,7 +204,6 @@ check_attr_tree_state_again:
 
        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;
        }