diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-07-01 14:41:54 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-08-17 09:36:35 +0200 |
commit | d4c5c2f331199aad3ff5d952de4dc4e28fa6beec (patch) | |
tree | 89d735ff07c761a3d37b17531db61fa153e02b77 /drivers/gpu/drm/virtio | |
parent | 5f374e63d214a1e1cfaff9575fa34f27b046d54c (diff) |
drm/virtgpu: remove redundant assignments to width and height
Variables width and height are being assigned values that are never
read. The assignments are redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200701134154.549112-1-colin.king@canonical.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/virtio')
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_display.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c b/drivers/gpu/drm/virtio/virtgpu_display.c index af55b334be2f..2c2742b8d657 100644 --- a/drivers/gpu/drm/virtio/virtgpu_display.c +++ b/drivers/gpu/drm/virtio/virtgpu_display.c @@ -165,8 +165,6 @@ static int virtio_gpu_conn_get_modes(struct drm_connector *connector) count = drm_add_modes_noedid(connector, XRES_MAX, YRES_MAX); if (width == 0 || height == 0) { - width = XRES_DEF; - height = YRES_DEF; drm_set_preferred_mode(connector, XRES_DEF, YRES_DEF); } else { DRM_DEBUG("add mode: %dx%d\n", width, height); |