mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
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: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Song Liu <songliubraving@fb.com>
This commit is contained in:
parent
2aada5b14b
commit
38ffc01f38
1 changed files with 2 additions and 2 deletions
|
@ -4307,8 +4307,8 @@ static int raid10_start_reshape(struct mddev *mddev)
|
||||||
else
|
else
|
||||||
rdev->recovery_offset = 0;
|
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
|
} else if (rdev->raid_disk >= conf->prev.raid_disks
|
||||||
&& !test_bit(Faulty, &rdev->flags)) {
|
&& !test_bit(Faulty, &rdev->flags)) {
|
||||||
|
|
Loading…
Reference in a new issue