diff options
| author | Nikolay Borisov <nborisov@suse.com> | 2020-11-13 10:29:40 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2020-12-08 17:54:13 +0300 |
| commit | 95b982de37473a99add60c9e68b12d54354f1da7 (patch) | |
| tree | 98a97506f2f95abebda62072dcb80e3fc28739b3 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | d5286a92ea76a124d6cfa1e261394da858125d99 (diff) | |
| download | linux-95b982de37473a99add60c9e68b12d54354f1da7.tar.xz | |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
