Home
last modified time | relevance | path

Searched hist:"95 b982de" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/btrfs/
H A Dctree.c95b982de Fri Nov 13 01:29:40 CST 2020 Nikolay Borisov <nborisov@suse.com> btrfs: simplify return values in 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.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>