Re: [PATCH 2/5] main: drop unrequired call to totem_get_stats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is wrong - we still need to get the stats during init

On 01/12/2012 01:24 AM, Fabio M. Di Nitto wrote:
> From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx>
> 
> and shut up another gcc warning
> 
> Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx>
> ---
> :100644 100644 6c1ea35... 94b6f60... M	exec/main.c
>  exec/main.c |    4 ----
>  1 files changed, 0 insertions(+), 4 deletions(-)
> 
> diff --git a/exec/main.c b/exec/main.c
> index 6c1ea35..94b6f60 100644
> --- a/exec/main.c
> +++ b/exec/main.c
> @@ -631,10 +631,6 @@ static void corosync_totem_dynamic_init (void)
>  
>  static void corosync_totem_stats_init (void)
>  {
> -	totempg_stats_t * stats;
> -
> -	stats = api->totem_get_stats();
> -
>  	icmap_set_uint32("runtime.totem.pg.mrp.srp.mtt_rx_token", 0);
>  	icmap_set_uint32("runtime.totem.pg.mrp.srp.avg_token_workload", 0);
>  	icmap_set_uint32("runtime.totem.pg.mrp.srp.avg_backlog_calc", 0);

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux