aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/drm.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-13 19:01:02 +0100
committerSimon Ser <contact@emersion.fr>2021-01-13 19:01:02 +0100
commitdc61f471da1a1c9264167635c286b6dcb37b3d6f (patch)
tree5cfffe997d00afe8c1c3deece063464188fb57cc /backend/drm/drm.c
parentb7dc4f2990d1e6cdba38a7e9d2d286e48dd1a3eb (diff)
backend/drm: remove unnecessary wlr_drm_fb.wlr_buf check
We don't need this check, wlr_buf is guaranteed not to be NULL.
Diffstat (limited to 'backend/drm/drm.c')
-rw-r--r--backend/drm/drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index b58241af..e57ec442 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -324,7 +324,7 @@ static bool drm_connector_attach_render(struct wlr_output *output,
static void drm_plane_set_committed(struct wlr_drm_plane *plane) {
drm_fb_move(&plane->queued_fb, &plane->pending_fb);
- if (plane->queued_fb && plane->queued_fb->wlr_buf) {
+ if (plane->queued_fb) {
wlr_swapchain_set_buffer_submitted(plane->surf.swapchain,
plane->queued_fb->wlr_buf);
}