summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5-cache.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-10-08 23:16:09 +0200
committerShaohua Li <shli@fb.com>2018-10-10 19:45:15 +0200
commit116d99adf59314924adae0cb691e4d289b5f2407 (patch)
treee78ab5cc761353e83b737e5adf69875dee2d4e6e /drivers/md/raid5-cache.c
parentmd: allow metadata updates while suspending an array - fix (diff)
downloadlinux-116d99adf59314924adae0cb691e4d289b5f2407.tar.xz
linux-116d99adf59314924adae0cb691e4d289b5f2407.zip
md: remove redundant code that is no longer reachable
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>
Diffstat (limited to 'drivers/md/raid5-cache.c')
-rw-r--r--drivers/md/raid5-cache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c
index e6e925add700..ec3a5ef7fee0 100644
--- a/drivers/md/raid5-cache.c
+++ b/drivers/md/raid5-cache.c
@@ -3151,8 +3151,6 @@ int r5l_init_log(struct r5conf *conf, struct md_rdev *rdev)
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_exit(&log->meta_pool);
out_mempool: