compositor-drm: Do not return an error when no connectors are configured

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@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Armin Krezović 2016-07-29 13:26:22 +02:00 committed by Pekka Paalanen
parent 707c4fd155
commit b12a754259

View File

@ -2618,11 +2618,8 @@ create_outputs(struct drm_backend *b, uint32_t option_connector,
drmModeFreeConnector(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"); weston_log("No currently active connector found.\n");
drmModeFreeResources(resources);
return -1;
}
drmModeFreeResources(resources); drmModeFreeResources(resources);