]> 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)
commitd0ec6d606d985a48e9b7f3e7a0494cf808e790bb
treedea7d042fc7728ccf07b36c1c770d56bb95678dd
parent9992d3113498d369478ac984c8ed2148835f0ac5
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