Skip to contentSkip to conversation

ocfs2: remove unneeded code in ocfs2_dlm_init

PATCH New Joseph Qi 1 participant 1 message Aug 14, 2015 OCFS2

lore
Share & tools
lore

Joseph Qi

author
#0 lore raw

PATCH 1/1 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'.

---
 fs/ocfs2/dlmglue.c | 2 --
 1 file changed, 2 deletions(-)
fs/ocfs2/dlmglue.c +0 -2
index 8b23aa2..87eee70 100644
@@ -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);
Signature · 1 line
1.8.4.3