mirror of
https://github.com/torvalds/linux.git
synced 2026-02-04 15:28:49 +08:00
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>
This commit is contained in:
committed by
Gerd Hoffmann
parent
5f374e63d2
commit
d4c5c2f331
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user