Skip to content

Commit 914a9b7

Browse files
josephhztorvalds
authored andcommitted
ocfs2: remove unneeded code in ocfs2_dlm_init
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>
1 parent 3cb2ec4 commit 914a9b7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/ocfs2/dlmglue.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3035,8 +3035,6 @@ int ocfs2_dlm_init(struct ocfs2_super *osb)
30353035
ocfs2_orphan_scan_lock_res_init(&osb->osb_orphan_scan.os_lockres, osb);
30363036

30373037
osb->cconn = conn;
3038-
3039-
status = 0;
30403038
bail:
30413039
if (status < 0) {
30423040
ocfs2_dlm_shutdown_debug(osb);

0 commit comments

Comments
 (0)