[Spice-commits] server/red_worker.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Tue Nov 3 08:37:58 PST 2015


 server/red_worker.c |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit 996ce40d7fe87282216e42691691db210da1d107
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Tue Nov 3 16:11:26 2015 +0000

    worker: remove only assigned set_client_capabilities_pending field
    
    This field is only assigned and never readed so can be removed.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Fabiano FidĂȘncio <fidencio at redhat.com>

diff --git a/server/red_worker.c b/server/red_worker.c
index b6f38f8..1db7b90 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -555,7 +555,6 @@ typedef struct RedWorker {
 #endif
 
     int driver_cap_monitors_config;
-    int set_client_capabilities_pending;
 
     FILE *record_fd;
 } RedWorker;
@@ -9313,7 +9312,6 @@ static void guest_set_client_capabilities(RedWorker *worker)
         ((a)[(c) / 8] &= ~(1 << ((c) % 8)))
 
     if (!worker->running) {
-        worker->set_client_capabilities_pending = 1;
         return;
     }
     if ((worker->display_channel == NULL) ||
@@ -9333,7 +9331,6 @@ static void guest_set_client_capabilities(RedWorker *worker)
         }
         worker->qxl->st->qif->set_client_capabilities(worker->qxl, TRUE, caps);
     }
-    worker->set_client_capabilities_pending = 0;
 }
 
 static void handle_new_display_channel(RedWorker *worker, RedClient *client, RedsStream *stream,


More information about the Spice-commits mailing list