md: raid10: Fix compilation warning
authorDamien Le Moal <damien.lemoal@wdc.com>
Thu, 16 Jul 2020 04:54:43 +0000 (13:54 +0900)
committerSong Liu <songliubraving@fb.com>
Thu, 16 Jul 2020 05:46:07 +0000 (22:46 -0700)
commit38ffc01f38cc844ad2b81cdc9b0a087c4fc4c2b8
tree5608063eae76ec08673d0e5f920b5e549d770193
parent2aada5b14bd0db76fb28885cbb22ce893b0654c8
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>
drivers/md/raid10.c