diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-02-09 14:06:05 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2024-03-04 21:07:55 +0100 |
commit | 672fc9b8c000e8162cb4fe6f2dfc990df968ee3a (patch) | |
tree | f907bcf55d648ac65a2f26a20e192394eeed24f3 /drivers/md/dm-vdo/slab-depot.c | |
parent | dm vdo memory-alloc: simplify allocations_allowed() (diff) | |
download | linux-672fc9b8c000e8162cb4fe6f2dfc990df968ee3a.tar.xz linux-672fc9b8c000e8162cb4fe6f2dfc990df968ee3a.zip |
dm vdo slab-depot: delete unnecessary check in allocate_components
This is a duplicate check so it can't be true. Delete it.
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Susan LeGendre-McGhee <slegendr@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-vdo/slab-depot.c')
-rw-r--r-- | drivers/md/dm-vdo/slab-depot.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/dm-vdo/slab-depot.c b/drivers/md/dm-vdo/slab-depot.c index 5fa7e0838b32..e10c3db8e665 100644 --- a/drivers/md/dm-vdo/slab-depot.c +++ b/drivers/md/dm-vdo/slab-depot.c @@ -4106,9 +4106,6 @@ static int allocate_components(struct slab_depot *depot, }; } - if (result != VDO_SUCCESS) - return result; - slab_count = vdo_compute_slab_count(depot->first_block, depot->last_block, depot->slab_size_shift); if (thread_config->physical_zone_count > slab_count) { |