# \[patch 179/192\] hfsplus: remove unnecessary oom message

- From: Andrew Morton \<akpm@linux-foundation.org\>
- Date: 2021-07-01 01:56:40 
- List: linux-mm
- Page: https://ratatoskr.run/linux-mm/2021/07/6509571
- Thread: https://ratatoskr.run/linux-mm/2021/07/6509393/t/3.md

```text
From: Zhen Lei <redacted>
Subject: 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 <redacted>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/hfsplus/xattr.c |    1 -
 1 file changed, 1 deletion(-)

--- a/fs/hfsplus/xattr.c~hfsplus-remove-unnecessary-oom-message
+++ a/fs/hfsplus/xattr.c
@@ -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;
 	}
_

```
