jfs: remove unnecessary oom message
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 17 Jun 2021 09:02:38 +0000 (17:02 +0800)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Wed, 23 Jun 2021 14:17:49 +0000 (09:17 -0500)
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>
fs/jfs/jfs_imap.c

index 937ca07..47913c3 100644 (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. */