Clean-up: useless assert that unsigned value is >= 0
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 20 Aug 2018 19:05:13 +0000 (15:05 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 20 Aug 2018 19:05:13 +0000 (15:05 -0400)
Reported-by: Coverity Scan (1387048 Macro compares unsigned to 0)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/consumer/consumer.c

index afc346333c5dc780a57c2bb86a548a9b0c60d82f..46b961e8980d8f30e68062a73dd2979c6ca6bf92 100644 (file)
@@ -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;
This page took 0.026704 seconds and 4 git commands to generate.