From: David Goulet Date: Tue, 11 Feb 2014 21:08:43 +0000 (-0500) Subject: Fix: remove dead code in relayd live code X-Git-Tag: v2.4.0-rc5~17 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=020e0e5363f0c4c9f969ef27724cc9e9f4aa3e0d;p=lttng-tools.git Fix: remove dead code in relayd live code Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index c70c31762..34114ad33 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -948,10 +948,6 @@ int viewer_get_new_streams(struct relay_connection *conn) send_streams = 1; response.status = htobe32(LTTNG_VIEWER_NEW_STREAMS_OK); - if (!send_streams) { - goto send_reply; - } - ret = make_viewer_streams(session, LTTNG_VIEWER_SEEK_LAST, NULL, &nb_unsent, &nb_created); if (ret < 0) { @@ -1082,10 +1078,6 @@ int viewer_attach_session(struct relay_connection *conn) goto send_reply; } - if (!send_streams) { - goto send_reply; - } - ret = make_viewer_streams(session, seek_type, &nb_streams, NULL, NULL); if (ret < 0) { goto end_unlock;