From c94cc64b6a3d29e674a7171556310daf6d52e73f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 10 Sep 2019 19:59:20 -0400 Subject: [PATCH] Clean-up: remove dead assignment in setup_channel_trace_path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit setup_channel_trace_path() returns NULL on error. There is no need to update a return code. Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/consumer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/bin/lttng-sessiond/consumer.c b/src/bin/lttng-sessiond/consumer.c index eeba2a2ab..53f7c3946 100644 --- a/src/bin/lttng-sessiond/consumer.c +++ b/src/bin/lttng-sessiond/consumer.c @@ -84,7 +84,6 @@ char *setup_channel_trace_path(struct consumer_output *consumer, goto error; } else if (ret >= LTTNG_PATH_MAX) { ERR("Truncation occurred while formatting channel path"); - ret = -1; goto error; } -- 2.34.1