From 5704917f6270a2d2fbdd03022bfb25132423d025 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Tue, 13 Mar 2018 14:40:26 -0400 Subject: [PATCH 1/1] Cleanup: ctx is never used by monitor_timer() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- src/common/consumer/consumer-timer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/consumer/consumer-timer.c b/src/common/consumer/consumer-timer.c index 9c10ddd25..cfbf44312 100644 --- a/src/common/consumer/consumer-timer.c +++ b/src/common/consumer/consumer-timer.c @@ -710,8 +710,7 @@ end: * Execute action on a monitor timer. */ static -void monitor_timer(struct lttng_consumer_local_data *ctx, - struct lttng_consumer_channel *channel) +void monitor_timer(struct lttng_consumer_channel *channel) { int ret; int channel_monitor_pipe = @@ -850,7 +849,7 @@ void *consumer_timer_thread(void *data) struct lttng_consumer_channel *channel; channel = info.si_value.sival_ptr; - monitor_timer(ctx, channel); + monitor_timer(channel); } else if (signr == LTTNG_CONSUMER_SIG_EXIT) { assert(CMM_LOAD_SHARED(consumer_quit)); goto end; -- 2.34.1