From: Francis Deslauriers Date: Thu, 22 Apr 2021 21:39:33 +0000 (-0400) Subject: Cleanup: ust-app.c: Dead assignment X-Git-Tag: v2.13.0-rc1~10 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=30f1659b7319f08fa5422db5fa8493905cb4b9c6 Cleanup: ust-app.c: Dead assignment Found using scan-build. Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau Change-Id: I8920ee21d8202e9b94b95f517c8e1fbe8c9224a0 --- diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index f44a30d1b..9f3037f34 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -5676,7 +5676,6 @@ void ust_app_synchronize_event_notifier_rules(struct ust_app *app) ret_code = notification_thread_command_list_triggers( the_notification_thread_handle, 0, &triggers); if (ret_code != LTTNG_OK) { - ret = -1; goto end; } @@ -5684,7 +5683,6 @@ void ust_app_synchronize_event_notifier_rules(struct ust_app *app) t_status = lttng_triggers_get_count(triggers, &count); if (t_status != LTTNG_TRIGGER_STATUS_OK) { - ret = -1; goto end; }