mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-06 21:45:58 +01:00
backend/drm: drop unnecessary wlr_drm_connector.crtc checks
drm_connector_alloc_crtc() already checks this.
This commit is contained in:
parent
f885aa0fbe
commit
5a207aea72
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue