From: Jonathan Rajotte Date: Wed, 26 Jul 2017 14:52:15 +0000 (-0400) Subject: Fix: ret is never used on error_open code path X-Git-Tag: v2.10.0~20 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bfe2653372235969e2ee2e70ab4c3427e52ac5ae;p=lttng-tools.git Fix: ret is never used on error_open code path Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 485a75134..03f695ec6 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -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; }