[ltt-dev] [UST PATCH] remove duplicate return

Nils Carlson nils.carlson at ludd.ltu.se
Sat Sep 11 14:36:22 EDT 2010


Could you strike the other return statement? So we keep the error  
message?

/Nils
On Sep 6, 2010, at 1:26 AM, Douglas Santos wrote:

> ---
> libustcmd/ustcmd.c |    5 -----
> 1 files changed, 0 insertions(+), 5 deletions(-)
>
> diff --git a/libustcmd/ustcmd.c b/libustcmd/ustcmd.c
> index cf6b9d7..825a649 100644
> --- a/libustcmd/ustcmd.c
> +++ b/libustcmd/ustcmd.c
> @@ -381,11 +381,6 @@ int ustcmd_get_cmsf(struct marker_status  
> **cmsf, const pid_t pid)
> 		return -1;
> 	}
>
> -	if (result != 1) {
> -		ERR("error while getting markers list");
> -		return -1;
> -	}
> -
> 	tmp_cmsf = (struct marker_status *) malloc(sizeof(struct  
> marker_status) *
> 		(ustcmd_count_nl(big_str) + 1));
> 	if (tmp_cmsf == NULL) {
> -- 
> 1.7.0.4
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev





More information about the lttng-dev mailing list