OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f374e6
)
drm/virtgpu: remove redundant assignments to width and height
author
Colin Ian King
<colin.king@canonical.com>
Wed, 1 Jul 2020 13:41:54 +0000
(14:41 +0100)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 17 Aug 2020 07:36:35 +0000
(09:36 +0200)
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>
drivers/gpu/drm/virtio/virtgpu_display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/virtio/virtgpu_display.c
b/drivers/gpu/drm/virtio/virtgpu_display.c
index
af55b33
..
2c2742b
100644
(file)
--- 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);