Skip to content

Commit 116d99a

Browse files
Colin Ian Kingshligit
authored andcommitted
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: d5d885f ("md: introduce new personality funciton start()") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Shaohua Li <[email protected]>
1 parent 059421e commit 116d99a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/md/raid5-cache.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3151,8 +3151,6 @@ int r5l_init_log(struct r5conf *conf, struct md_rdev *rdev)
31513151
set_bit(MD_HAS_JOURNAL, &conf->mddev->flags);
31523152
return 0;
31533153

3154-
rcu_assign_pointer(conf->log, NULL);
3155-
md_unregister_thread(&log->reclaim_thread);
31563154
reclaim_thread:
31573155
mempool_exit(&log->meta_pool);
31583156
out_mempool:

0 commit comments

Comments
 (0)