Skip to content

Commit

Permalink
drm/qxl: drop redundant code
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kraxel committed May 12, 2021
1 parent bfebd42 commit 1d878df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/gpu/drm/qxl/qxl_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 1d878df

Please sign in to comment.