f2fs: remove unused check on version_bitmap
PATCH 1/1 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 <[email protected]>
--- fs/f2fs/node.c | 3 --- 1 file changed, 3 deletions(-)
fs/f2fs/node.c +0 -3
@@ -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)
Signature · 8 lines
2.25.1 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 4 lines · Wang Xiaojun
A NULL will not be return by
__bitmap_ptrhere.
Remove the unused check.Signed-off-by Wang Xiaojun <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel