From: Jérémie Galarneau Date: Tue, 10 Sep 2019 23:56:18 +0000 (-0400) Subject: Clean-up: remove dead assignments while setting session trace chunk X-Git-Tag: v2.12.0-rc1~412 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7f13b97cfd2a9b89efd581eaba80aa5ba3358acf;p=lttng-tools.git Clean-up: remove dead assignments while setting session trace chunk The error path always returns -1 making more specific error reporting impossible. Don't bother reporting more precise error codes. Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/session.c b/src/bin/lttng-sessiond/session.c index e0ab7f4a5..2e39c4317 100644 --- a/src/bin/lttng-sessiond/session.c +++ b/src/bin/lttng-sessiond/session.c @@ -482,7 +482,6 @@ int _session_set_trace_chunk_no_lock_check(struct ltt_session *session, ret_error_code = ust_app_create_channel_subdirectories( session->ust_session); if (ret_error_code != LTTNG_OK) { - ret = -ret_error_code; goto error; } } @@ -513,7 +512,6 @@ int _session_set_trace_chunk_no_lock_check(struct ltt_session *session, ret_error_code = kernel_create_channel_subdirectories( session->kernel_session); if (ret_error_code != LTTNG_OK) { - ret = -ret_error_code; goto error; } }