From: Jérémie Galarneau Date: Wed, 21 Apr 2021 19:39:09 +0000 (-0400) Subject: Clean-up: sessiond: error-query: remove unneeded goto X-Git-Tag: v2.13.0-rc1~56 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a644d2a417fa064335d05ce70daaa094eea3bc18;p=lttng-tools.git Clean-up: sessiond: error-query: remove unneeded goto Signed-off-by: Jérémie Galarneau Change-Id: Ie0d02a5151b359ffb1e9ce487811d8235c4a3d9d --- diff --git a/src/bin/lttng-sessiond/trigger-error-query.c b/src/bin/lttng-sessiond/trigger-error-query.c index bc8e7f688..ff8c9ca05 100644 --- a/src/bin/lttng-sessiond/trigger-error-query.c +++ b/src/bin/lttng-sessiond/trigger-error-query.c @@ -83,8 +83,7 @@ enum lttng_trigger_status lttng_trigger_add_action_error_query_results( lttng_trigger_get_action(trigger), results); switch (action_status) { case LTTNG_ACTION_STATUS_OK: - status = LTTNG_TRIGGER_STATUS_OK; - goto end; + break; default: status = LTTNG_TRIGGER_STATUS_ERROR; goto end;