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>
This commit is contained in:
Dan Carpenter
2024-02-09 16:06:05 +03:00
committed by Mike Snitzer
parent 924553644a
commit 672fc9b8c0

View File

@@ -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) {