From ec135c61effc83fff0695e0e36a4182a8be83c5c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 20 Aug 2018 15:05:13 -0400 Subject: [PATCH] Clean-up: useless assert that unsigned value is >= 0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported-by: Coverity Scan (1387048 Macro compares unsigned to 0) Signed-off-by: Jérémie Galarneau --- src/common/consumer/consumer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/common/consumer/consumer.c b/src/common/consumer/consumer.c index afc346333..46b961e89 100644 --- a/src/common/consumer/consumer.c +++ b/src/common/consumer/consumer.c @@ -2340,7 +2340,6 @@ int consumer_post_rotation(struct lttng_consumer_stream *stream, stream->chan->name); ret = rotate_notify_sessiond(ctx, stream->chan->key); } - assert(stream->chan->nr_stream_rotate_pending >= 0); pthread_mutex_unlock(&stream->chan->lock); return ret; -- 2.34.1