Cleanup: functions shall have a single exit point
[lttng-tools.git] / 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.023054 seconds and 4 git commands to generate.