From: Jérémie Galarneau Date: Mon, 20 Aug 2018 19:05:13 +0000 (-0400) Subject: Clean-up: useless assert that unsigned value is >= 0 X-Git-Tag: v2.11.0-rc1~147 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ec135c61effc83fff0695e0e36a4182a8be83c5c;p=lttng-tools.git Clean-up: useless assert that unsigned value is >= 0 Reported-by: Coverity Scan (1387048 Macro compares unsigned to 0) Signed-off-by: Jérémie Galarneau --- 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;