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

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


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/reds-private.h | 1 -
 server/reds.c         | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/server/reds-private.h b/server/reds-private.h
index 74a251b..97ea0ba 100644
--- a/server/reds-private.h
+++ b/server/reds-private.h
@@ -140,7 +140,6 @@ struct RedsState {
     pthread_mutex_t stat_lock;
     RedsStatValue roundtrip_stat;
 #endif
-    int peer_minor_version;
     int allow_multiple_clients;
 
     RedsClientMonitorsConfig client_monitors_config;
diff --git a/server/reds.c b/server/reds.c
index 1909e6e..988858d 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -2356,7 +2356,6 @@ static void reds_handle_link_error(void *opaque, int err)
 static void reds_handle_read_header_done(void *opaque)
 {
     RedLinkInfo *link = (RedLinkInfo *)opaque;
-    RedsState *reds = link->reds;
     SpiceLinkHeader *header = &link->link_header;
 
     header->major_version = GUINT32_FROM_LE(header->major_version);
@@ -2379,8 +2378,6 @@ static void reds_handle_read_header_done(void *opaque)
         return;
     }
 
-    reds->peer_minor_version = header->minor_version;
-
     if (header->size < sizeof(SpiceLinkMess)) {
         reds_send_link_error(link, SPICE_LINK_ERR_INVALID_DATA);
         spice_warning("bad size %u", header->size);
-- 
2.7.4



More information about the Spice-devel mailing list