X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fkernel.c;h=abf038f4d59a3f1c9f021123e29e947db3fd4db1;hp=b32193451f2060c401ac9d7503f2e48574be3fe4;hb=21ed98c107c9be59bd1f4e2b2b1ecfb56ef6ff57;hpb=e7e1ef17602bc925e3271acf3c914929cee93bc5 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; }