btrfs: remove always true if branch in find_delalloc_range
The @found is always false when it comes to the if branch. Besides, the bool type is more suitable for @found. Change the return value of the function and its caller to bool as well. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
@@ -66,7 +66,7 @@ static int test_find_delalloc(u32 sectorsize)
|
||||
u64 max_bytes = BTRFS_MAX_EXTENT_SIZE;
|
||||
u64 total_dirty = 2 * max_bytes;
|
||||
u64 start, end, test_start;
|
||||
u64 found;
|
||||
bool found;
|
||||
int ret = -EINVAL;
|
||||
|
||||
test_msg("running find delalloc tests");
|
||||
|
Reference in New Issue
Block a user