From: Jonathan Rajotte Date: Tue, 25 Jul 2017 21:12:31 +0000 (-0400) Subject: Cleanup: functions shall have a single exit point X-Git-Tag: v2.11.0-rc1~481 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=21ed98c107c9be59bd1f4e2b2b1ecfb56ef6ff57;hp=e7e1ef17602bc925e3271acf3c914929cee93bc5 Cleanup: functions shall have a single exit point Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- 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; }