Commit 38ffc01f authored by Damien Le Moal's avatar Damien Le Moal Committed by Song Liu
Browse files

md: raid10: Fix compilation warning



Remove the if statement around the call to sysfs_link_rdev() in
raid10_start_reshape() to avoid the compilation warning:

warning: suggest braces around empty body in an ‘if’ statement

when compiling with W=1.

Signed-off-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: default avatarSong Liu <songliubraving@fb.com>
parent 2aada5b1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4307,8 +4307,8 @@ static int raid10_start_reshape(struct mddev *mddev)
					else
						rdev->recovery_offset = 0;

					if (sysfs_link_rdev(mddev, rdev))
						/* Failure here  is OK */;
					/* Failure here is OK */
					sysfs_link_rdev(mddev, rdev);
				}
			} else if (rdev->raid_disk >= conf->prev.raid_disks
				   && !test_bit(Faulty, &rdev->flags)) {