X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmi-lttng.c;h=f9f1e225aec32f1b383022e4a2afb55b2e9f90da;hb=3dde0a9310a828bb49caefad56a76833860668d0;hp=bd5049efea8b8b88b5b833ad98763a58305a884c;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git 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);