Clean-up: remove dead assignment in setup_channel_trace_path
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Sep 2019 23:59:20 +0000 (19:59 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Sep 2019 23:59:30 +0000 (19:59 -0400)
setup_channel_trace_path() returns NULL on error. There is no
need to update a return code.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/consumer.c

index eeba2a2ab50eb5466b3b5b2aecd006eccbdfb7db..53f7c3946e859fd6c1c4a7581db12415ba5f8121 100644 (file)
@@ -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;
        }
 
This page took 0.034081 seconds and 4 git commands to generate.