mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 00:29:36 -04:00
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:
committed by
Mike Snitzer
parent
924553644a
commit
672fc9b8c0
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user