diff options
| author | 2021-07-28 07:03:05 +0800 | |
|---|---|---|
| committer | 2021-08-23 13:19:09 +0200 | |
| commit | efc222f8d79c0431c92ae8c72bc62d2e6bcf0a00 (patch) | |
| tree | f7d06b092b80f8a5fde7ea548f8e742ddb4d3094 /fs/btrfs/tree-log.c | |
| parent | btrfs: remove the dead comment in writepage_delalloc() (diff) | |
| download | wireguard-linux-efc222f8d79c0431c92ae8c72bc62d2e6bcf0a00.tar.xz wireguard-linux-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/tree-log.c')
0 files changed, 0 insertions, 0 deletions
