]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
vhost-user-gpu: drop code duplication
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Mon, 20 Apr 2026 20:03:20 +0000 (23:03 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 3 Jun 2026 12:36:11 +0000 (08:36 -0400)
Obviously, this duplicated fragment doesn't make any sense.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Raphael Norwitz <raphael.s.norwitz@gmail.com>
Reviewed-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20260420200339.708640-6-vsementsov@yandex-team.ru>

hw/display/vhost-user-gpu.c

index 6e5e6540a46588ff502ae14bd428900d810e7fa9..6f02314356de6b4291962f865ff33d41c400bcd5 100644 (file)
@@ -644,10 +644,6 @@ vhost_user_gpu_device_realize(DeviceState *qdev, Error **errp)
         VIRTIO_GPU_F_RESOURCE_UUID)) {
         g->parent_obj.conf.flags |= 1 << VIRTIO_GPU_FLAG_RESOURCE_UUID_ENABLED;
     }
-    if (virtio_has_feature(g->vhost->dev.features,
-        VIRTIO_GPU_F_RESOURCE_UUID)) {
-        g->parent_obj.conf.flags |= 1 << VIRTIO_GPU_FLAG_RESOURCE_UUID_ENABLED;
-    }
 
     if (!virtio_gpu_base_device_realize(qdev, NULL, NULL, errp)) {
         return;