Cleanup: ust-app.c: Dead assignment
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 22 Apr 2021 21:39:33 +0000 (17:39 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 23 Apr 2021 14:18:46 +0000 (10:18 -0400)
Found using scan-build.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I8920ee21d8202e9b94b95f517c8e1fbe8c9224a0

src/bin/lttng-sessiond/ust-app.c

index f44a30d1b13774c73c66d77c3e59d9a51bb7ba72..9f3037f34c8261a50f6f86ea85a5d25c7d0a27bc 100644 (file)
@@ -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;
        }
 
This page took 0.026846 seconds and 4 git commands to generate.