@samitouri / QOSamiQemu / commits / 0641dfdac0

vhost-user-gpu: drop code duplication

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>

Vladimir Sementsov-Ogievskiy committed Apr 20, 2026 at 23:03 UTC 0641dfdac00ba76ffbe41c59291e5ad23c62c219
1 file changed -4
hw/display/vhost-user-gpu.c
-4
@@ -644,10 +644,6 @@ vhost_user_gpu_device_realize(DeviceState *qdev, Error **errp)
644 VIRTIO_GPU_F_RESOURCE_UUID)) {
645 g->parent_obj.conf.flags |= 1 << VIRTIO_GPU_FLAG_RESOURCE_UUID_ENABLED;
646 }
647 - if (virtio_has_feature(g->vhost->dev.features,
648 - VIRTIO_GPU_F_RESOURCE_UUID)) {
649 - g->parent_obj.conf.flags |= 1 << VIRTIO_GPU_FLAG_RESOURCE_UUID_ENABLED;
650 - }
647
648 if (!virtio_gpu_base_device_realize(qdev, NULL, NULL, errp)) {
649 return;