X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fcontext.c;h=402da2fd19f48c31ba5fcb6ec8e08f1c615a63d9;hb=d2641a837d460c275884523d67120379711dc38c;hp=9727258bf130b0f8912a9edb67f0c6a77f3aa4f8;hpb=ae8564917fa3cb3497ec17951d8ac0ee28de9c81;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/context.c b/src/bin/lttng-sessiond/context.c index 9727258bf..402da2fd1 100644 --- a/src/bin/lttng-sessiond/context.c +++ b/src/bin/lttng-sessiond/context.c @@ -337,7 +337,7 @@ int context_ust_add(struct ltt_ust_session *usess, int domain, struct lttng_event_context *ctx, char *event_name, char *channel_name) { - int ret = LTTCOMM_OK, have_event = 0, no_chan = 1; + int ret = LTTCOMM_OK, have_event = 0; struct lttng_ht_iter iter; struct lttng_ht *chan_ht; struct ltt_ust_channel *uchan = NULL; @@ -409,7 +409,6 @@ int context_ust_add(struct ltt_ust_session *usess, int domain, } else if (!uchan && !have_event) { /* Add ctx all events, all channels */ /* For all channels */ cds_lfht_for_each_entry(chan_ht->ht, &iter.iter, uchan, node.node) { - no_chan = 0; ret = add_uctx_to_channel(usess, domain, uchan, ctx); if (ret < 0) { ERR("Context failed for channel %s", uchan->name); @@ -437,10 +436,6 @@ end: break; } - if (no_chan) { - ret = LTTCOMM_UST_CHAN_NOT_FOUND; - } - error: return ret; }