[lttng-dev] [PATCH lttng-tools] Cleanup: spaghetti function return path

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Fri Nov 21 12:36:36 EST 2014


Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
---
 src/bin/lttng-relayd/live.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c
index 2940b2c..a76f530 100644
--- a/src/bin/lttng-relayd/live.c
+++ b/src/bin/lttng-relayd/live.c
@@ -804,14 +804,9 @@ int viewer_list_sessions(struct relay_connection *conn)
 	}
 	health_code_update();
 
-	rcu_read_unlock();
 	ret = 0;
-	goto end;
-
 end_unlock:
 	rcu_read_unlock();
-
-end:
 	return ret;
 }
 
-- 
2.1.1




More information about the lttng-dev mailing list