mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 06:04:44 +01:00
btrfs: remove out_failed label in find_lock_delalloc_range()
There is no point in having the label since all it does is return the value in the 'found' variable. Instead make every goto return directly and remove the label. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
2efcd25a76
commit
bb09b9a491
1 changed files with 2 additions and 3 deletions
|
|
@ -440,8 +440,7 @@ again:
|
|||
loops = 1;
|
||||
goto again;
|
||||
} else {
|
||||
found = false;
|
||||
goto out_failed;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -461,7 +460,7 @@ again:
|
|||
}
|
||||
*start = delalloc_start;
|
||||
*end = delalloc_end;
|
||||
out_failed:
|
||||
|
||||
return found;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue