aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-10-07 17:57:53 +0200
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-10-07 16:09:05 +0000
commit5a207aea7222059ffb6f8260689f7a0025cc12b1 (patch)
tree04aa939564f1f127a01a70b7052b9f191b8a7b76 /backend/drm
parentf885aa0fbe89828101d65ad7a1336319c5d6bf47 (diff)
backend/drm: drop unnecessary wlr_drm_connector.crtc checks
drm_connector_alloc_crtc() already checks this.
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 01ce867e..5f9ed8bc 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -943,7 +943,7 @@ static const struct wlr_drm_format_set *drm_connector_get_cursor_formats(
return NULL;
}
struct wlr_drm_connector *conn = get_drm_connector_from_output(output);
- if (!conn->crtc && !drm_connector_alloc_crtc(conn)) {
+ if (!drm_connector_alloc_crtc(conn)) {
return NULL;
}
struct wlr_drm_plane *plane = conn->crtc->cursor;
@@ -969,7 +969,7 @@ static const struct wlr_drm_format_set *drm_connector_get_primary_formats(
return NULL;
}
struct wlr_drm_connector *conn = get_drm_connector_from_output(output);
- if (!conn->crtc && !drm_connector_alloc_crtc(conn)) {
+ if (!drm_connector_alloc_crtc(conn)) {
return NULL;
}
if (conn->backend->parent) {