[Spice-devel] [PATCH] remove only written num_mig_target_clients field in RedsState

Christophe Fergeau cfergeau at redhat.com
Tue May 17 15:15:38 UTC 2016


Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Mon, May 16, 2016 at 05:13:42PM +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  server/reds-private.h | 1 -
>  server/reds.c         | 2 --
>  2 files changed, 3 deletions(-)
> 
> diff --git a/server/reds-private.h b/server/reds-private.h
> index 97ea0ba..5724f16 100644
> --- a/server/reds-private.h
> +++ b/server/reds-private.h
> @@ -118,7 +118,6 @@ struct RedsState {
>      int dst_do_seamless_migrate; /* per migration. Updated after the migration handshake
>                                      between the 2 servers */
>      Ring mig_target_clients;
> -    int num_mig_target_clients;
>  
>      int num_of_channels;
>      Ring channels;
> diff --git a/server/reds.c b/server/reds.c
> index 988858d..a1e589a 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -1671,7 +1671,6 @@ static void reds_mig_target_client_add(RedsState *reds, RedClient *client)
>      mig_client->reds = reds;
>      ring_init(&mig_client->pending_links);
>      ring_add(&reds->mig_target_clients, &mig_client->link);
> -    reds->num_mig_target_clients++;
>  
>  }
>  
> @@ -1709,7 +1708,6 @@ static void reds_mig_target_client_free(RedsMigTargetClient *mig_client)
>      RingItem *now, *next;
>  
>      ring_remove(&mig_client->link);
> -    mig_client->reds->num_mig_target_clients--;
>  
>      RING_FOREACH_SAFE(now, next, &mig_client->pending_links) {
>          RedsMigPendingLink *mig_link = SPICE_CONTAINEROF(now, RedsMigPendingLink, ring_link);
> -- 
> 2.7.4
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160517/5cbcb892/attachment.sig>


More information about the Spice-devel mailing list