Remove unused ltt_session look-up result
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 3 May 2018 20:06:11 +0000 (16:06 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 3 May 2018 20:06:11 +0000 (16:06 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/ust-consumer.c

index b9865a0f015b76e0abb5ebcedfd8b92238b47465..01d71ce01e34f9a58f13feca4ec6f520e9664bf7 100644 (file)
@@ -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);
This page took 0.026396 seconds and 4 git commands to generate.