diff options
author | Nikolay Borisov <[email protected]> | 2020-11-24 17:49:31 +0200 |
---|---|---|
committer | David Sterba <[email protected]> | 2020-12-08 15:54:15 +0100 |
commit | c6a592f2e2093e6a90d651b073746c7950d6420d (patch) | |
tree | 078ca7dc5afbef160f624a85dd95a63b6009d17b /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | ee0d904fd9c5662c58a737c77384f8959fdc8d12 (diff) |
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 <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions