jfs: 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.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
This commit is contained in:
Zhen Lei 2021-06-17 17:02:38 +08:00 committed by Dave Kleikamp
parent 9d574f985f
commit e15a56b746
1 changed files with 1 additions and 3 deletions

View File

@ -103,10 +103,8 @@ int diMount(struct inode *ipimap)
*/
/* allocate the in-memory inode map control structure. */
imap = kmalloc(sizeof(struct inomap), GFP_KERNEL);
if (imap == NULL) {
jfs_err("diMount: kmalloc returned NULL!");
if (imap == NULL)
return -ENOMEM;
}
/* read the on-disk inode map control structure. */