diff options
author | 2020-07-02 15:23:28 +0300 | |
---|---|---|
committer | 2020-07-27 12:55:39 +0200 | |
commit | 2279a270534c678e78f961fed8e09c9c69611ceb (patch) | |
tree | d75262d88f6a363510c92cf5596354808a4455c5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: remove deprecated mount option subvolrootid (diff) | |
download | wireguard-linux-2279a270534c678e78f961fed8e09c9c69611ceb.tar.xz wireguard-linux-2279a270534c678e78f961fed8e09c9c69611ceb.zip |
btrfs: make get_state_failrec return failrec directly
Only failure that get_state_failrec can get is if there is no failure
for the given address. There is no reason why the function should return
a status code and use a separate parameter for returning the actual
failure rec (if one is found). Simplify it by making the return type
a pointer and return ERR_PTR value in case of errors.
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