aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorHeghedus Razvan <heghedus.razvan@gmail.com>2017-10-15 13:32:37 +0300
committerHeghedus Razvan <heghedus.razvan@gmail.com>2017-10-20 11:46:09 +0300
commit1d716241afbc721c3ae65d4a2bb0e25866fe081c (patch)
tree890ed910ec48af6f0725f45a66b981469ac517be /backend
parentc03e7746367194b859125624b059c1725eb7ae30 (diff)
Replace list_t with wl_list in wlr_output
Signed-off-by: Heghedus Razvan <heghedus.razvan@gmail.com>
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/drm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 74a63f79..60ac8e3e 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -782,11 +782,7 @@ void wlr_drm_scan_connectors(struct wlr_drm_backend *drm) {
mode->wlr_mode.width, mode->wlr_mode.height,
mode->wlr_mode.refresh);
- if (list_add(wlr_conn->output.modes, mode) == -1) {
- wlr_log_errno(L_ERROR, "Allocation failed");
- free(mode);
- continue;
- }
+ wl_list_insert(&wlr_conn->output.modes, &mode->wlr_mode.link);
}
wlr_conn->state = WLR_DRM_CONN_NEEDS_MODESET;