ocfs2: remove unneeded code in ocfs2_dlm_init
authorJoseph Qi <joseph.qi@huawei.com>
Fri, 4 Sep 2015 22:43:54 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Sep 2015 23:54:41 +0000 (16:54 -0700)
status is already initialized and it will only be 0 or negatives in the
code flow.  So remove the unneeded assignment after the lable 'local'.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/dlmglue.c

index 23157e40dd740204bc10f9eaeb55ec08f2f0dfb4..1c91103c13339aca31b51f7b45de4a8beb05e3bb 100644 (file)
@@ -3035,8 +3035,6 @@ local:
        ocfs2_orphan_scan_lock_res_init(&osb->osb_orphan_scan.os_lockres, osb);
 
        osb->cconn = conn;
-
-       status = 0;
 bail:
        if (status < 0) {
                ocfs2_dlm_shutdown_debug(osb);