Skip to content

Commit 04dc533

Browse files
damien-lemoalsnitm
authored andcommitted
dm raid: Remove empty if statement
In super_init_validation(), remove a body-less if statement testing only variables to avoid a compilation warning when compiling with W=1. Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent a84c430 commit 04dc533

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/md/dm-raid.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2345,8 +2345,6 @@ static int super_init_validation(struct raid_set *rs, struct md_rdev *rdev)
23452345

23462346
if (new_devs == rs->raid_disks || !rebuilds) {
23472347
/* Replace a broken device */
2348-
if (new_devs == 1 && !rs->delta_disks)
2349-
;
23502348
if (new_devs == rs->raid_disks) {
23512349
DMINFO("Superblocks created for new raid set");
23522350
set_bit(MD_ARRAY_FIRST_USE, &mddev->flags);

0 commit comments

Comments
 (0)