Skip to content

Commit

Permalink
dm vdo slab-depot: delete unnecessary check in allocate_components
Browse files Browse the repository at this point in the history
This is a duplicate check so it can't be true.  Delete it.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Signed-off-by: Susan LeGendre-McGhee <[email protected]>
Signed-off-by: Matthew Sakai <[email protected]>
  • Loading branch information
Dan Carpenter authored and lorelei-sakai committed Feb 20, 2024
1 parent 370b139 commit 8e3b9b7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/md/dm-vdo/slab-depot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8e3b9b7

Please sign in to comment.