f2fs: remove unused check on version_bitmap
authorWang Xiaojun <wangxiaojun11@huawei.com>
Sat, 19 Sep 2020 03:35:05 +0000 (11:35 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 29 Sep 2020 08:48:33 +0000 (01:48 -0700)
A NULL will not be return by __bitmap_ptr here.
Remove the unused check.

Signed-off-by: Wang Xiaojun <wangxiaojun11@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c

index 85efa13..93fb34d 100644 (file)
@@ -3105,9 +3105,6 @@ static int init_node_manager(struct f2fs_sb_info *sbi)
        nm_i->next_scan_nid = le32_to_cpu(sbi->ckpt->next_free_nid);
        nm_i->bitmap_size = __bitmap_size(sbi, NAT_BITMAP);
        version_bitmap = __bitmap_ptr(sbi, NAT_BITMAP);
-       if (!version_bitmap)
-               return -EFAULT;
-
        nm_i->nat_bitmap = kmemdup(version_bitmap, nm_i->bitmap_size,
                                        GFP_KERNEL);
        if (!nm_i->nat_bitmap)