Skip to content

Commit

Permalink
ocfs2: remove unneeded code in ocfs2_dlm_init
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
josephhz authored and torvalds committed Sep 4, 2015
1 parent 3cb2ec4 commit 914a9b7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/ocfs2/dlmglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 914a9b7

Please sign in to comment.