mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 17:23:55 +08:00
btrfs: tests: remove if duplicate in __check_free_space_extents()
num_extents is already checked in the next if condition and can be safely removed. Signed-off-by: Denis Efremov <efremov@linux.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
923eb52365
commit
5af9d6ef3f
@ -60,8 +60,6 @@ static int __check_free_space_extents(struct btrfs_trans_handle *trans,
|
||||
if (prev_bit == 0 && bit == 1) {
|
||||
extent_start = offset;
|
||||
} else if (prev_bit == 1 && bit == 0) {
|
||||
if (i >= num_extents)
|
||||
goto invalid;
|
||||
if (i >= num_extents ||
|
||||
extent_start != extents[i].start ||
|
||||
offset - extent_start != extents[i].length)
|
||||
|
Loading…
Reference in New Issue
Block a user