mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +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:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user