aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2018-12-17 09:49:00 +0000
committerDavid Sterba <[email protected]>2019-02-25 13:13:22 +0000
commitb8eeab7fced20169f5d8b4e3894e9e470fdf01ef (patch)
tree93f5a015c7e6f35aab373403e48881d039384d8d /fs/btrfs/async-thread.c
parentbtrfs: Rename found_type to extent_type in btrfs_get_extent (diff)
downloadkernel-b8eeab7fced20169f5d8b4e3894e9e470fdf01ef.tar.gz
kernel-b8eeab7fced20169f5d8b4e3894e9e470fdf01ef.zip
btrfs: Consolidate retval checking of core btree functions
Core btree functions in btrfs generally return 0 when an item is found, 1 in case the sought item cannot be found and <0 when an error happens. Consolidate the checks for those conditions in one 'if () {} else if () {}' construct rather than 2 separate 'if () {}' statements. This emphasizes that the handling code pertains to a single function. No functional changes. Reviewed-by: Qu Wenruo <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Nikolay Borisov <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions