OSDN Git Service

md: remove redundant code that is no longer reachable
authorColin Ian King <colin.king@canonical.com>
Mon, 8 Oct 2018 21:16:09 +0000 (22:16 +0100)
committerShaohua Li <shli@fb.com>
Wed, 10 Oct 2018 17:45:15 +0000 (10:45 -0700)
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>
drivers/md/raid5-cache.c

index e6e925a..ec3a5ef 100644 (file)
@@ -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: