OSDN Git Service

drm/virtio: simplify virtio_gpu_alloc_cmd
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 7 Feb 2020 07:46:35 +0000 (08:46 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 10 Feb 2020 11:54:32 +0000 (12:54 +0100)
commit8235eab0122a051b05e3dac128a64b66c0273dac
tree26e0eafb62ae6f908ad714199da699e276539940
parente59a2508d90f393c8423716349db315e32b67559
drm/virtio: simplify virtio_gpu_alloc_cmd

Just call virtio_gpu_alloc_cmd_resp with some fixed args
instead of duplicating most of the function body.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200207074638.26386-2-kraxel@redhat.com
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
drivers/gpu/drm/virtio/virtgpu_vq.c