drm/virtio: make virtio_gpu_object_attach void

It always returns zero.

Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20200401223039.2860-4-gurchetansingh@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gurchetan Singh
2020-04-01 15:30:38 -07:00
committed by Gerd Hoffmann
parent 6457a0df4d
commit c76d4ab764
3 changed files with 9 additions and 14 deletions

View File

@@ -235,11 +235,7 @@ int virtio_gpu_object_create(struct virtio_gpu_device *vgdev,
return ret;
}
ret = virtio_gpu_object_attach(vgdev, bo, ents, nents);
if (ret != 0) {
virtio_gpu_free_object(&shmem_obj->base);
return ret;
}
virtio_gpu_object_attach(vgdev, bo, ents, nents);
*bo_ptr = bo;
return 0;