From: Jérémie Galarneau Date: Tue, 10 Sep 2019 23:59:20 +0000 (-0400) Subject: Clean-up: remove dead assignment in setup_channel_trace_path X-Git-Tag: v2.12.0-rc1~411 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c94cc64b6a3d29e674a7171556310daf6d52e73f;p=lttng-tools.git Clean-up: remove dead assignment in setup_channel_trace_path setup_channel_trace_path() returns NULL on error. There is no need to update a return code. Signed-off-by: Jérémie Galarneau --- 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; }