Skip to contentSkip to conversation

ocfs2/cluster: clean up unnecessary assignment for 'ret'

PATCH Applied piaojun 1 participant 1 message Jul 18, 2016 OCFS2

lore
Share & tools
lore

piaojun

author
#0 lore raw

PATCH 1/1 ocfs2/cluster: clean up unnecessary assignment for 'ret'

clean up unnecessary assignment for 'ret'.

---
 fs/ocfs2/cluster/tcp.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
fs/ocfs2/cluster/tcp.c +2 -6
index 2d0acd6..9aea996 100644
@@ -1617,16 +1617,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);
 	/*
Signature · 1 line
1.8.4.3