Skip to content

Commit

Permalink
ocfs2/cluster: clean up unnecessary assignment for 'ret'
Browse files Browse the repository at this point in the history
Clean up unnecessary assignment for 'ret'.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jun Piao <[email protected]>
Reviewed-by: Joseph Qi <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
JunPiaoHW authored and torvalds committed Jul 26, 2016
1 parent e81f1c5 commit 7d65b27
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions fs/ocfs2/cluster/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1618,16 +1618,12 @@ static void o2net_start_connect(struct work_struct *work)

/* watch for racing with tearing a node down */
node = o2nm_get_node_by_num(o2net_num_from_nn(nn));
if (node == NULL) {
ret = 0;
if (node == NULL)
goto out;
}

mynode = o2nm_get_node_by_num(o2nm_this_node());
if (mynode == NULL) {
ret = 0;
if (mynode == NULL)
goto out;
}

spin_lock(&nn->nn_lock);
/*
Expand Down

0 comments on commit 7d65b27

Please sign in to comment.