diff options
author | 2020-11-24 17:49:31 +0200 | |
---|---|---|
committer | 2020-12-08 15:54:15 +0100 | |
commit | c6a592f2e2093e6a90d651b073746c7950d6420d (patch) | |
tree | 078ca7dc5afbef160f624a85dd95a63b6009d17b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: remove err variable from btrfs_delete_subvolume (diff) | |
download | linux-rng-c6a592f2e2093e6a90d651b073746c7950d6420d.tar.xz linux-rng-c6a592f2e2093e6a90d651b073746c7950d6420d.zip |
btrfs: eliminate err variable from merge_reloc_root
In most cases when an error is returned from a function 'ret' is simply
assigned to 'err'. There is only one case where walk_up_reloc_tree can
return a positive value - in this case the code breaks from the loop and
ret is going to get its return value from btrfs_cow_block - either 0 or
negative. This retains the old logic of how 'err' used to be set at
this call site.
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-postgresql.py')
0 files changed, 0 insertions, 0 deletions