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

Drop pointless resid variable in virtio_gpu_mode_dumb_create(), 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-4-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_gem.c