From ee4efda9d88ed0eefac33b4ec9dfd41904f9455a Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Wed, 26 Jul 2017 10:52:15 -0400 Subject: [PATCH] Fix: ret is never used on error_open code path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 80ca3d7c0..57a73a847 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -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; } -- 2.34.1