mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00: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) {
|
if (prev_bit == 0 && bit == 1) {
|
||||||
extent_start = offset;
|
extent_start = offset;
|
||||||
} else if (prev_bit == 1 && bit == 0) {
|
} else if (prev_bit == 1 && bit == 0) {
|
||||||
if (i >= num_extents)
|
|
||||||
goto invalid;
|
|
||||||
if (i >= num_extents ||
|
if (i >= num_extents ||
|
||||||
extent_start != extents[i].start ||
|
extent_start != extents[i].start ||
|
||||||
offset - extent_start != extents[i].length)
|
offset - extent_start != extents[i].length)
|
||||||
|
Loading…
Reference in New Issue
Block a user