From: Jonathan Rajotte Date: Tue, 13 Mar 2018 18:40:26 +0000 (-0400) Subject: Cleanup: ctx is never used by monitor_timer() X-Git-Tag: v2.11.0-rc1~212 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5704917f6270a2d2fbdd03022bfb25132423d025;p=lttng-tools.git Cleanup: ctx is never used by monitor_timer() Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- 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;