diff options
| author | Filipe Manana <fdmanana@suse.com> | 2022-08-22 17:47:10 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2022-09-26 13:27:58 +0300 |
| commit | 1fdbd03d3d924415eb8abfb5d3b5e50ca0775469 (patch) | |
| tree | 0518de6c437d336a49b2f07f19f83b270fe8451b /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 48ff70830bec1ccc714f4e31059df737f17ec909 (diff) | |
| download | linux-1fdbd03d3d924415eb8abfb5d3b5e50ca0775469.tar.xz | |
btrfs: simplify error handling at btrfs_del_root_ref()
At btrfs_del_root_ref() we are using two return variables, named 'ret'
and 'err'. This makes it harder to follow and easier to return the wrong
value in case an error happens - the previous patch in the series, which
has the subject "btrfs: fix silent failure when deleting root
reference", fixed a bug due to confusion created by these two variables.
So change the function to use a single variable for tracking the return
value of the function, using only 'ret', which is consistent with most
of the codebase.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
