diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-05-11 12:45:21 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2021-05-12 12:37:46 +0200 |
commit | 1d878df018611abdff1e96d275b4bbd86d030223 (patch) | |
tree | 003333828fdf014fb733c2e411027b330b9d3c34 /drivers/gpu/drm/qxl | |
parent | bfebd42d5609848de3c5b5723e56f2e6f08ca8ec (diff) | |
download | linux-stable-1d878df018611abdff1e96d275b4bbd86d030223.tar.gz linux-stable-1d878df018611abdff1e96d275b4bbd86d030223.tar.bz2 linux-stable-1d878df018611abdff1e96d275b4bbd86d030223.zip |
drm/qxl: drop redundant code
Not needed, qxl_io_destroy_primary() does that for us.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20210511104522.2694803-2-kraxel@redhat.com
Diffstat (limited to 'drivers/gpu/drm/qxl')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_display.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index a7637e79cb42..be5183733c1b 100644 --- a/drivers/gpu/drm/qxl/qxl_display.c +++ b/drivers/gpu/drm/qxl/qxl_display.c @@ -677,10 +677,8 @@ static void qxl_primary_atomic_disable(struct drm_plane *plane, if (bo->shadow) bo = bo->shadow; - if (bo->is_primary) { + if (bo->is_primary) qxl_io_destroy_primary(qdev); - bo->is_primary = false; - } } } |