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>
dev
Armin Krezović 8 years ago committed by Pekka Paalanen
parent 707c4fd155
commit b12a754259
  1. 5
      libweston/compositor-drm.c

@ -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);

Loading…
Cancel
Save