From b12a7542591ba1dda658bae4476601aa9c9f8e08 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Armin=20Krezovi=C4=87?= Date: Fri, 29 Jul 2016 13:26:22 +0200 Subject: [PATCH] compositor-drm: Do not return an error when no connectors are configured MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Returning an error when there are no connectors results in weston terminating after that. That's not expected when trying to get weston to start with zero drm outputs. Signed-off-by: Armin Krezović Reviewed-by: Pekka Paalanen --- libweston/compositor-drm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index 34922af..88edd7a 100644 --- a/libweston/compositor-drm.c +++ b/libweston/compositor-drm.c @@ -2618,11 +2618,8 @@ create_outputs(struct drm_backend *b, uint32_t option_connector, drmModeFreeConnector(connector); } - if (wl_list_empty(&b->compositor->output_list)) { + if (wl_list_empty(&b->compositor->output_list)) weston_log("No currently active connector found.\n"); - drmModeFreeResources(resources); - return -1; - } drmModeFreeResources(resources); -- 2.7.4