X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fmi-lttng.c;h=f9f1e225aec32f1b383022e4a2afb55b2e9f90da;hp=bd5049efea8b8b88b5b833ad98763a58305a884c;hb=f5112e978f61eb82bf487cfa9efa2de359d37661;hpb=83fa31bf7c7ba6cb7837e35762059a090343f376 diff --git a/src/common/mi-lttng.c b/src/common/mi-lttng.c index bd5049efe..f9f1e225a 100644 --- a/src/common/mi-lttng.c +++ b/src/common/mi-lttng.c @@ -1743,9 +1743,6 @@ int mi_lttng_id_target(struct mi_writer *writer, ret = -LTTNG_ERR_INVALID; goto end; } - if (ret) { - goto end; - } if (!is_open) { ret = mi_lttng_writer_close_element(writer);