drm/virtio: remove set but not used variable 'vgdev'
authorYueHaibing <yuehaibing@huawei.com>
Mon, 25 Mar 2019 09:26:31 +0000 (09:26 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 28 Mar 2019 11:11:47 +0000 (12:11 +0100)
commitdf16a224d2b59213385cf012ecdb68a72a003fc6
tree96870cd4fbfb5d121d93303f8d2230e19d20ca0f
parentec8bf1942567bf0736314da9723e93bcc73c131f
drm/virtio: remove set but not used variable 'vgdev'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpu/drm/virtio/virtgpu_ttm.c: In function 'virtio_gpu_init_mem_type':
drivers/gpu/drm/virtio/virtgpu_ttm.c:117:28: warning:
 variable 'vgdev' set but not used [-Wunused-but-set-variable]

drivers/gpu/drm/virtio/virtgpu_ttm.c: In function 'virtio_gpu_bo_swap_notify':
drivers/gpu/drm/virtio/virtgpu_ttm.c:300:28: warning:
 variable 'vgdev' set but not used [-Wunused-but-set-variable]

It is never used since introduction in dc5698e80cf7 ("Add virtio gpu driver.")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190325092631.152060-1-yuehaibing@huawei.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_ttm.c