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.10.0~26 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=1cacb1214f55b04498457455ac25465f1f0cc6c1;hp=513ae6a3aa9b4c3a747ad047cb265c33c5cba33a;p=lttng-tools.git 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; }