X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbin%2Flttng-sessiond%2Fkernel.c;h=abf038f4d59a3f1c9f021123e29e947db3fd4db1;hb=6e2cc8d8a8193add85668d81385693f5fd662725;hp=b32193451f2060c401ac9d7503f2e48574be3fe4;hpb=6e21424e11f47edb885c7f92ae1cae69eee0ed8e;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/kernel.c b/src/bin/lttng-sessiond/kernel.c index b32193451..abf038f4d 100644 --- a/src/bin/lttng-sessiond/kernel.c +++ b/src/bin/lttng-sessiond/kernel.c @@ -63,11 +63,10 @@ int kernel_add_channel_context(struct ltt_kernel_channel *chan, goto error; } } + ret = 0; end: cds_list_add_tail(&ctx->list, &chan->ctx_list); - return 0; - error: return ret; }