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>
Tue, 1 Aug 2017 21:12:06 +0000 (17:12 -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 80ca3d7c04e42704a325bb8b2aedfee1db0d7837..57a73a84731373a20a94cd2f4b9de20966ac859f 100644 (file)
@@ -2716,7 +2716,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.027866 seconds and 4 git commands to generate.