Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 914a9b74 authored by Joseph Qi's avatar Joseph Qi Committed by Linus Torvalds
Browse files

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: default avatarJoseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3cb2ec43
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3035,8 +3035,6 @@ int ocfs2_dlm_init(struct ocfs2_super *osb)
	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);