From: Jonathan Rajotte Date: Fri, 27 Apr 2018 21:20:21 +0000 (-0400) Subject: Cleanup: ret is unused in relay_process_data_receive_header() X-Git-Tag: v2.11.0-rc1~257 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=25c6c5dcd5c2d503a8521dda5853d6e3074fdc33;p=lttng-tools.git Cleanup: ret is unused in relay_process_data_receive_header() Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index 168332018..f23d0391c 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -3256,7 +3256,6 @@ static enum relay_connection_status relay_process_data_receive_header( DBG3("Partial reception of data connection header (received %" PRIu64 " bytes, %" PRIu64 " bytes left to receive, fd = %i)", state->received, state->left_to_receive, conn->sock->fd); - ret = 0; goto end; } @@ -3323,7 +3322,6 @@ static enum relay_connection_status relay_process_data_receive_header( conn->protocol.data.state.receive_payload.rotate_index = true; } - ret = 0; end_stream_unlock: pthread_mutex_unlock(&stream->lock); stream_put(stream);