diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-09-03 12:46:12 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-10-15 17:23:29 +0200 |
commit | b444ad46b2db4f8c682c99ffb994e532a4713012 (patch) | |
tree | ed43f01df44288d65700346093f3658f09bde967 /fs/libfs.c | |
parent | 374b0e2d6ba5da7fd1cadb3247731ff27d011f6f (diff) |
btrfs: Make btrfs_find_device_by_path return struct btrfs_device
Currently this function returns an error code as well as uses one of
its arguments as a return value for struct btrfs_device. Change the
function so that it returns btrfs_device directly and use the usual
"encode error in pointer" mechanics if something goes wrong. No
functional changes.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/libfs.c')
0 files changed, 0 insertions, 0 deletions