forked from torvalds/linux
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
btrfs: Simplify setup_nodes_for_search
The function is needlessly convoluted. Fix that by: * Removing redundant sret variable definition in both if arms. * Replace the again/done labels with direct return statements, the function is short enough and doesn't do anything special upon exit. * Remove BUG_ON on split_node returning a positive number - it can't happen as split_node returns either 0 or a negative error code. Signed-off-by: Nikolay Borisov <nborisov@suse.com>
- Loading branch information
1 parent
a123150
commit aea2237f4b88d91fc8ad6469b205ff6ada2fcf55
Showing
1 changed file
with
7 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters