Blob Blame History Raw
From 116d99adf59314924adae0cb691e4d289b5f2407 Mon Sep 17 00:00:00 2001
From: Colin Ian King <colin.king@canonical.com>
Date: Mon, 8 Oct 2018 22:16:09 +0100
Subject: [PATCH] md: remove redundant code that is no longer reachable
Git-commit: 116d99adf59314924adae0cb691e4d289b5f2407
Patch-mainline: v4.20-rc1
References: bsc#1111974 bsc#1166003

And earlier commit removed the error label to two statements that
are now never reachable.  Since this code is now dead code, remove it.

Detected by CoverityScan, CID#1462409 ("Structurally dead code")

Fixes: d5d885fd514f ("md: introduce new personality funciton start()")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Coly Li <colyli@suse.de>
---
 drivers/md/raid5-cache.c |    2 --
 1 file changed, 2 deletions(-)

--- a/drivers/md/raid5-cache.c
+++ b/drivers/md/raid5-cache.c
@@ -3150,8 +3150,6 @@ int r5l_init_log(struct r5conf *conf, st
 	set_bit(MD_HAS_JOURNAL, &conf->mddev->flags);
 	return 0;
 
-	rcu_assign_pointer(conf->log, NULL);
-	md_unregister_thread(&log->reclaim_thread);
 reclaim_thread:
 	mempool_destroy(log->meta_pool);
 out_mempool: