commit | efc222f8d79c0431c92ae8c72bc62d2e6bcf0a00 | [log] [tgz] |
---|---|---|
author | Anand Jain <anand.jain@oracle.com> | Wed Jul 28 07:03:05 2021 +0800 |
committer | David Sterba <dsterba@suse.com> | Mon Aug 23 13:19:09 2021 +0200 |
tree | f7d06b092b80f8a5fde7ea548f8e742ddb4d3094 | |
parent | 7361b4ae03d9f3325852eec1a7395ec5f1ff802d [diff] |
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>