Fix useless variable
authorDavid Goulet <dgoulet@efficios.com>
Thu, 23 Feb 2012 22:19:29 +0000 (17:19 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 23 Feb 2012 22:19:29 +0000 (17:19 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/context.c

index e4c9a51bfb94679339ec94077d4155ddf53261b1..402da2fd19f48c31ba5fcb6ec8e08f1c615a63d9 100644 (file)
@@ -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);
This page took 0.027325 seconds and 5 git commands to generate.