Cleanup: functions shall have a single exit point
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 25 Jul 2017 21:12:31 +0000 (17:12 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 31 Jul 2017 17:17:15 +0000 (13:17 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/kernel.c

index b32193451f2060c401ac9d7503f2e48574be3fe4..abf038f4d59a3f1c9f021123e29e947db3fd4db1 100644 (file)
@@ -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;
 }
This page took 0.026177 seconds and 4 git commands to generate.