diff options
author | Wang Xiaojun <wangxiaojun11@huawei.com> | 2020-09-19 06:35:05 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-09-29 11:48:33 +0300 |
commit | e6e421870b5f4a73802dac7c123dcb02f929989f (patch) | |
tree | d3f7ba018f6c1756f75ac2faf8b2db2666c11d61 /fs/f2fs | |
parent | d0660122dced9768aadfa450f723d857464a4137 (diff) | |
download | linux-e6e421870b5f4a73802dac7c123dcb02f929989f.tar.xz |
f2fs: remove unused check on version_bitmap
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/node.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 85efa13fc3c3..93fb34d636eb 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -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) |