diff options
author | Anand Jain <anand.jain@oracle.com> | 2021-07-28 07:03:05 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-08-23 13:19:09 +0200 |
commit | efc222f8d79c0431c92ae8c72bc62d2e6bcf0a00 (patch) | |
tree | f7d06b092b80f8a5fde7ea548f8e742ddb4d3094 /fs/btrfs/btrfs_inode.h | |
parent | 7361b4ae03d9f3325852eec1a7395ec5f1ff802d (diff) | |
download | lwn-efc222f8d79c0431c92ae8c72bc62d2e6bcf0a00.tar.gz lwn-efc222f8d79c0431c92ae8c72bc62d2e6bcf0a00.zip |
btrfs: simplify return values in btrfs_check_raid_min_devices
Function btrfs_check_raid_min_devices() returns error code from the enum
btrfs_err_code and it starts from 1. So there is no need to check if ret
is > 0. So drop this check and also drop the local variable ret.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
0 files changed, 0 insertions, 0 deletions