From: David Goulet Date: Wed, 1 Oct 2014 18:27:26 +0000 (-0400) Subject: Fix: remove useless assert in relayd X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=ed2b7d406bafb8c56e88853bc9b3206d63754163 Fix: remove useless assert in relayd Fixes Coverity issue 1127095. Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index fa5a7db86..802d7e107 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -1345,7 +1345,6 @@ int relay_close_stream(struct lttcomm_relayd_hdr *recv_hdr, stream->last_net_seq_num = be64toh(stream_info.last_net_seq_num); stream->close_flag = 1; session->stream_count--; - assert(session->stream_count >= 0); /* Check if we can close it or else the data will do it. */ try_close_stream(session, stream);