]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: use virtio_gpu_object->hw_res_handle in virtio_gpu_resource_create_ioctl()
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 19 Oct 2018 06:18:45 +0000 (08:18 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 29 Oct 2018 21:50:55 +0000 (22:50 +0100)
commit6302227418bc3a99ee3b39224d4f05ef7b951663
treedea7d042fc7728ccf07b36c1c770d56bb95678dd
parent1c1b75a1295e680acc3e8011c73449857c51cd96
drm/virtio: use virtio_gpu_object->hw_res_handle in virtio_gpu_resource_create_ioctl()

Drop pointless res_id variable in virtio_gpu_resource_create_ioctl(),
just use the hw_res_handle field in virtio_gpu_object directly.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20181019061847.18958-5-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_ioctl.c