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.8.8~4 X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=51ae18c40a280a8e97032307581bad0cf2053294 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 0e121b604..57ed8dca9 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -2759,7 +2759,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; }