diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-02-21 12:43:28 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-22 07:23:57 +0100 |
commit | 4a9102c5eb03c07482a53e7a63f09d0bfe21e339 (patch) | |
tree | 300ef50e176f41b1f5593165e5aa50a1a8c67d53 /hw/display | |
parent | 836682bc03c2ba5599876adb66ee19bb03084593 (diff) | |
download | qemu-4a9102c5eb03c07482a53e7a63f09d0bfe21e339.zip qemu-4a9102c5eb03c07482a53e7a63f09d0bfe21e339.tar.gz qemu-4a9102c5eb03c07482a53e7a63f09d0bfe21e339.tar.bz2 |
virtio-gpu: remove unused config_size
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-3-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display')
-rw-r--r-- | hw/display/virtio-gpu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index a52c2ae..8f43514 100644 --- a/hw/display/virtio-gpu.c +++ b/hw/display/virtio-gpu.c @@ -1238,10 +1238,9 @@ static void virtio_gpu_device_realize(DeviceState *qdev, Error **errp) } } - g->config_size = sizeof(struct virtio_gpu_config); g->virtio_config.num_scanouts = cpu_to_le32(g->conf.max_outputs); virtio_init(VIRTIO_DEVICE(g), "virtio-gpu", VIRTIO_ID_GPU, - g->config_size); + sizeof(struct virtio_gpu_config)); g->req_state[0].width = g->conf.xres; g->req_state[0].height = g->conf.yres; |