[PATCH 1/7] compositor-drm: Do not return an error when no connectors are configured

Armin Krezović krezovic.armin at gmail.com
Fri Jul 29 11:26:22 UTC 2016


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ć <krezovic.armin at gmail.com>
---
 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 f903a3b..f089741 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -2617,11 +2617,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.9.2



More information about the wayland-devel mailing list