if (cur_pid != fields[i].event.pid) {
if (pid_element_open) {
if (event_element_open) {
- /*
- * Close the previous fields element
- * and the previous event
- */
+
+ /* Close the previous field element and event. */
ret = mi_lttng_close_multi_element(writer, 2);
if (ret) {
goto end;