From: Jonathan Rajotte Date: Tue, 13 Mar 2018 22:21:14 +0000 (-0400) Subject: Cleanup: consumer_data is never used by update_kernel_stream() X-Git-Tag: v2.11.0-rc1~204 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7f032058373dee8b5ed3903a9d77e4d4ccb7a1c4;p=lttng-tools.git Cleanup: consumer_data is never used by update_kernel_stream() Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index e032e037c..2b2a59ade 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -858,7 +858,7 @@ error: * * Useful for CPU hotplug feature. */ -static int update_kernel_stream(struct consumer_data *consumer_data, int fd) +static int update_kernel_stream(int fd) { int ret = 0; struct ltt_session *session; @@ -1092,7 +1092,7 @@ static void *thread_manage_kernel(void *data) * New CPU detected by the kernel. Adding kernel stream to * kernel session and updating the kernel consumer */ - ret = update_kernel_stream(&kconsumer_data, pollfd); + ret = update_kernel_stream(pollfd); if (ret < 0) { continue; }