Fix: ret is never used on error_open code path
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 26 Jul 2017 14:52:15 +0000 (10:52 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 28 Jul 2017 18:01:50 +0000 (14:01 -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/main.c

index 485a7513410e502c5f8f933e2f76fb9e4c420766..03f695ec672006e896b462c12aef673c8b861594 100644 (file)
@@ -2782,7 +2782,6 @@ static int init_kernel_tracer(void)
        kernel_tracer_fd = open(module_proc_lttng, O_RDWR);
        if (kernel_tracer_fd < 0) {
                DBG("Failed to open %s", module_proc_lttng);
-               ret = -1;
                goto error_open;
        }
 
This page took 0.026529 seconds and 4 git commands to generate.