dm raid: Remove empty if statement
authorDamien Le Moal <damien.lemoal@wdc.com>
Thu, 16 Jul 2020 04:38:13 +0000 (13:38 +0900)
committerMike Snitzer <snitzer@redhat.com>
Tue, 4 Aug 2020 19:48:48 +0000 (15:48 -0400)
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 <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c

index 10e8b2f..08023c5 100644 (file)
@@ -2345,8 +2345,6 @@ static int super_init_validation(struct raid_set *rs, struct md_rdev *rdev)
 
        if (new_devs == rs->raid_disks || !rebuilds) {
                /* Replace a broken device */
-               if (new_devs == 1 && !rs->delta_disks)
-                       ;
                if (new_devs == rs->raid_disks) {
                        DMINFO("Superblocks created for new raid set");
                        set_bit(MD_ARRAY_FIRST_USE, &mddev->flags);