Nikolay Borisov b8eeab7fce 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 <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2019-02-25 14:13:22 +01:00
..
2019-02-25 14:13:20 +01:00
2018-08-06 13:12:43 +02:00
2018-04-12 16:29:55 +02:00
2018-12-17 14:51:50 +01:00
2018-03-26 15:09:39 +02:00
2018-08-06 13:12:43 +02:00
2019-02-03 08:48:33 -08:00
2018-12-17 14:51:40 +01:00