From: Jérémie Galarneau Date: Thu, 5 Dec 2024 20:49:20 +0000 (+0000) Subject: Clean-up: sessiond: remove unused ust_app_ctx::list X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c86dad837122e20e5b4a4c18935be7f335d51d3d;p=lttng-tools.git Clean-up: sessiond: remove unused ust_app_ctx::list Change-Id: Ib13497dea90fa1d22bee51b7745a1960e09181f4 Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/ust-app.cpp b/src/bin/lttng-sessiond/ust-app.cpp index 21b67e9d4..0a5fda52f 100644 --- a/src/bin/lttng-sessiond/ust-app.cpp +++ b/src/bin/lttng-sessiond/ust-app.cpp @@ -583,7 +583,6 @@ static void delete_ust_app_channel(int sock, lttng::urcu::lfht_iteration_adapter(*ua_chan->ctx->ht)) { - cds_list_del(&ua_ctx->list); ret = cds_lfht_del(ua_chan->ctx->ht, &ua_ctx->node.node); LTTNG_ASSERT(!ret); delete_ust_app_ctx(sock, ua_ctx, app); @@ -1366,8 +1365,6 @@ static struct ust_app_ctx *alloc_ust_app_ctx(struct lttng_ust_context_attr *uctx goto error; } - CDS_INIT_LIST_HEAD(&ua_ctx->list); - if (uctx) { memcpy(&ua_ctx->ctx, uctx, sizeof(ua_ctx->ctx)); if (uctx->ctx == LTTNG_UST_ABI_CONTEXT_APP_CONTEXT) { diff --git a/src/bin/lttng-sessiond/ust-app.hpp b/src/bin/lttng-sessiond/ust-app.hpp index cad2a3806..44ccb6185 100644 --- a/src/bin/lttng-sessiond/ust-app.hpp +++ b/src/bin/lttng-sessiond/ust-app.hpp @@ -112,7 +112,6 @@ struct ust_app_ctx { struct lttng_ust_context_attr ctx; struct lttng_ust_abi_object_data *obj; struct lttng_ht_node_ulong node; - struct cds_list_head list; }; struct ust_app_event {