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

Frediano Ziglio fziglio at redhat.com
Mon May 16 16:13:42 UTC 2016


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



More information about the Spice-devel mailing list