Skip to contentSkip to conversation

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

PATCH New [email protected] 1 participant 1 message Jul 26, 2016 OCFS2

lore
Share & tools
lore
#0 lore raw

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

From: piaojun <[email protected]>
Subject: 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 renamed from fs/ocfs2/cluster/tcp.c~ocfs2-cluster-clean-up-unnecessary-assignment-for-ret +2 -6
diff -puN fs/ocfs2/cluster/tcp.c~ocfs2-cluster-clean-up-unnecessary-assignment-for-ret fs/ocfs2/cluster/tcp.c
@@ -1618,16 +1618,12 @@ static void o2net_start_connect(struct w
 
 	/* 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);
 	/*

_