Skip to content

Commit 207efcd

Browse files
GuoqingJiangshligit
authored andcommitted
md: remove obsolete ret in md_start_sync
The ret is not needed anymore since we have already move resync_start into md_do_sync in commit 41a9a0d. Reviewed-by: NeilBrown <[email protected]> Signed-off-by: Guoqing Jiang <[email protected]> Signed-off-by: Shaohua Li <[email protected]>
1 parent b347af8 commit 207efcd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/md/md.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8278,16 +8278,13 @@ static int remove_and_add_spares(struct mddev *mddev,
82788278
static void md_start_sync(struct work_struct *ws)
82798279
{
82808280
struct mddev *mddev = container_of(ws, struct mddev, del_work);
8281-
int ret = 0;
82828281

82838282
mddev->sync_thread = md_register_thread(md_do_sync,
82848283
mddev,
82858284
"resync");
82868285
if (!mddev->sync_thread) {
8287-
if (!(mddev_is_clustered(mddev) && ret == -EAGAIN))
8288-
printk(KERN_ERR "%s: could not start resync"
8289-
" thread...\n",
8290-
mdname(mddev));
8286+
printk(KERN_ERR "%s: could not start resync thread...\n",
8287+
mdname(mddev));
82918288
/* leave the spares where they are, it shouldn't hurt */
82928289
clear_bit(MD_RECOVERY_SYNC, &mddev->recovery);
82938290
clear_bit(MD_RECOVERY_RESHAPE, &mddev->recovery);

0 commit comments

Comments
 (0)