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@redhat.com>
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
Frediano Ziglio 2015-11-03 16:11:26 +00:00
parent 23e17c2fc9
commit 996ce40d7f

View File

@ -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,