From: Jonathan Rajotte Julien Date: Mon, 28 Jul 2014 19:50:28 +0000 (-0400) Subject: Fix: mi: logically dead code, missing ret assignment X-Git-Tag: v2.6.0-rc1~95 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d58bb91784d4930d031ccce485d99a865820cb78;p=lttng-tools.git Fix: mi: logically dead code, missing ret assignment Signed-off-by: Jonathan Rajotte Julien Signed-off-by: David Goulet --- diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index f33e8d0e3..580b13f1f 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -746,7 +746,7 @@ static int mi_list_kernel_events(struct lttng_event *events, int count, } for (i = 0; i < count; i++) { - mi_lttng_event(writer, &events[i], 0); + ret = mi_lttng_event(writer, &events[i], 0); if (ret) { goto end; }