aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2020-07-02 15:23:28 +0300
committerDavid Sterba <[email protected]>2020-07-27 12:55:39 +0200
commit2279a270534c678e78f961fed8e09c9c69611ceb (patch)
treed75262d88f6a363510c92cf5596354808a4455c5 /lib/debugobjects.c
parentb90a4ab6ba9cce79a1ac06a250d5fc8c3dff382b (diff)
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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions