Commit 1d878df0 authored by Gerd Hoffmann's avatar Gerd Hoffmann

drm/qxl: drop redundant code

Not needed, qxl_io_destroy_primary() does that for us.
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Acked-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20210511104522.2694803-2-kraxel@redhat.com
parent bfebd42d
...@@ -677,10 +677,8 @@ static void qxl_primary_atomic_disable(struct drm_plane *plane, ...@@ -677,10 +677,8 @@ static void qxl_primary_atomic_disable(struct drm_plane *plane,
if (bo->shadow) if (bo->shadow)
bo = bo->shadow; bo = bo->shadow;
if (bo->is_primary) { if (bo->is_primary)
qxl_io_destroy_primary(qdev); qxl_io_destroy_primary(qdev);
bo->is_primary = false;
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment