From: Jérémie Galarneau Date: Thu, 3 May 2018 20:06:11 +0000 (-0400) Subject: Remove unused ltt_session look-up result X-Git-Tag: v2.11.0-rc1~246 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=34e09c4955f3fa34f977de433eac75bca8836066;p=lttng-tools.git Remove unused ltt_session look-up result Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/ust-consumer.c b/src/bin/lttng-sessiond/ust-consumer.c index b9865a0f0..01d71ce01 100644 --- a/src/bin/lttng-sessiond/ust-consumer.c +++ b/src/bin/lttng-sessiond/ust-consumer.c @@ -243,7 +243,6 @@ int ust_consumer_ask_channel(struct ust_app_session *ua_sess, struct consumer_socket *socket, struct ust_registry_session *registry) { int ret; - struct ltt_session *session; assert(ua_sess); assert(ua_chan); @@ -257,9 +256,6 @@ int ust_consumer_ask_channel(struct ust_app_session *ua_sess, goto error; } - session = session_find_by_id(ua_sess->tracing_id); - assert(session); - pthread_mutex_lock(socket->lock); ret = ask_channel_creation(ua_sess, ua_chan, consumer, socket, registry); pthread_mutex_unlock(socket->lock);