[lttng-dev] [PATCH lttng-tool] Fix: mi: logically dead code, missing ret assignment

David Goulet dgoulet at efficios.com
Tue Jul 29 10:09:23 EDT 2014


Merged

On 28 Jul (15:50:28), Jonathan Rajotte Julien wrote:
> Signed-off-by: Jonathan Rajotte Julien <jonathan.r.julien at gmail.com>
> ---
>  src/bin/lttng/commands/list.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c
> index 210c2f4..956b62e 100644
> --- a/src/bin/lttng/commands/list.c
> +++ b/src/bin/lttng/commands/list.c
> @@ -748,7 +748,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;
>  		}
> -- 
> 2.0.0
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: Digital signature
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140729/ad8b1b8e/attachment.sig>


More information about the lttng-dev mailing list