mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 01:59:54 +00:00
fsck/segment.c: Remove dead code
commit fdff1ab3157c2787d908e013b9d42db84184e196 category: bugfix issue: #I6VAS0 CVE: NA Signed-off-by: DongSenhao <dongsenhao2@huawei.com> --------------------------------------- Since 'remained_blkentries' is unsigned, the assert statement that verifies whether that variable is positive will never fail. Hence remove that assert statement. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: dongsenhao <dongsenhao2@huawei.com>
This commit is contained in:
parent
7ab17e3382
commit
ff7c97ddbc
@ -537,7 +537,6 @@ static void update_largest_extent(struct f2fs_sb_info *sbi, nid_t ino)
|
||||
cur_blk += count;
|
||||
dn.ofs_in_node += count;
|
||||
remained_blkentries -= count;
|
||||
ASSERT(remained_blkentries >= 0);
|
||||
}
|
||||
|
||||
exit:
|
||||
|
Loading…
Reference in New Issue
Block a user