OSDN Git Service

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)
commit70a0d6a37726a1a3d13a8b358fb362ea692778e1
treedea7d042fc7728ccf07b36c1c770d56bb95678dd
parentc40336ba5ed6c67e131cbf82a4fa37faf3bf0ed3
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