From: Jérémie Galarneau Date: Wed, 7 Apr 2021 16:12:25 +0000 (-0400) Subject: Clean-up: sessiond: blasphemous declaration of variable in code X-Git-Tag: v2.13.0-rc1~155 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a3ed2a4e441779205ea3b0d97a3a7f223237214b;p=lttng-tools.git Clean-up: sessiond: blasphemous declaration of variable in code Signed-off-by: Jérémie Galarneau Change-Id: I5200a2a3e077e3e33f6773a2b0ada1db04261a9f --- diff --git a/src/bin/lttng-sessiond/notification-thread-events.c b/src/bin/lttng-sessiond/notification-thread-events.c index 6d153f16d..d3b6cd855 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.c +++ b/src/bin/lttng-sessiond/notification-thread-events.c @@ -1089,6 +1089,7 @@ int notification_thread_client_subscribe(struct notification_client *client, struct notification_client_list *client_list = NULL; struct lttng_condition_list_element *condition_list_element = NULL; struct notification_client_list_element *client_list_element = NULL; + struct lttng_trigger_ht_element *trigger_ht_element; enum lttng_notification_channel_status status = LTTNG_NOTIFICATION_CHANNEL_STATUS_OK; @@ -1142,7 +1143,6 @@ int notification_thread_client_subscribe(struct notification_client *client, * This is correct since the list doesn't own the trigger and the * object is immutable. */ - struct lttng_trigger_ht_element *trigger_ht_element; pthread_mutex_lock(&client_list->lock); cds_list_for_each_entry(trigger_ht_element, &client_list->triggers_list, client_list_trigger_node) {