diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-02-21 12:43:30 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-22 07:23:57 +0100 |
commit | 9a6d74c0de17760abea91ebeefbcd531e963712d (patch) | |
tree | 1cafbdef997b63409927e2f26ff2a8c4133c9290 | |
parent | ad341aacbf4b119a88e0f9d5a1f753d6ed0fdd86 (diff) | |
download | qemu-9a6d74c0de17760abea91ebeefbcd531e963712d.zip qemu-9a6d74c0de17760abea91ebeefbcd531e963712d.tar.gz qemu-9a6d74c0de17760abea91ebeefbcd531e963712d.tar.bz2 |
virtio-gpu: remove useless 'waiting' field
Let's check renderer_blocked instead directly.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Christophe Fergeau <cfergeau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190221114330.17968-5-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | hw/display/virtio-gpu.c | 4 | ||||
-rw-r--r-- | include/hw/virtio/virtio-gpu.h | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index 7ada4b8..0baa9ac 100644 --- a/hw/display/virtio-gpu.c +++ b/hw/display/virtio-gpu.c @@ -889,8 +889,7 @@ void virtio_gpu_process_cmdq(VirtIOGPU *g) while (!QTAILQ_EMPTY(&g->cmdq)) { cmd = QTAILQ_FIRST(&g->cmdq); - cmd->waiting = g->renderer_blocked; - if (cmd->waiting) { + if (g->renderer_blocked) { break; } @@ -939,7 +938,6 @@ static void virtio_gpu_handle_ctrl(VirtIODevice *vdev, VirtQueue *vq) cmd->vq = vq; cmd->error = 0; cmd->finished = false; - cmd->waiting = false; QTAILQ_INSERT_TAIL(&g->cmdq, cmd, next); cmd = virtqueue_pop(vq, sizeof(struct virtio_gpu_ctrl_command)); } diff --git a/include/hw/virtio/virtio-gpu.h b/include/hw/virtio/virtio-gpu.h index f8cd8ee..26a6698 100644 --- a/include/hw/virtio/virtio-gpu.h +++ b/include/hw/virtio/virtio-gpu.h @@ -81,7 +81,6 @@ struct virtio_gpu_ctrl_command { VirtQueue *vq; struct virtio_gpu_ctrl_hdr cmd_hdr; uint32_t error; - bool waiting; bool finished; QTAILQ_ENTRY(virtio_gpu_ctrl_command) next; }; |