diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2020-07-16 06:54:43 +0200 |
---|---|---|
committer | Song Liu <songliubraving@fb.com> | 2020-07-16 07:46:07 +0200 |
commit | 38ffc01f38cc844ad2b81cdc9b0a087c4fc4c2b8 (patch) | |
tree | 5608063eae76ec08673d0e5f920b5e549d770193 /drivers/md/raid10.c | |
parent | md: raid5: Fix compilation warning (diff) | |
download | linux-38ffc01f38cc844ad2b81cdc9b0a087c4fc4c2b8.tar.xz linux-38ffc01f38cc844ad2b81cdc9b0a087c4fc4c2b8.zip |
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>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 2c47474fa69d..14b1ba732cd7 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -4307,8 +4307,8 @@ out: 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)) { |