ecore_drm: Iterate over all available connectors not just the first
authorStefan Schmidt <s.schmidt@samsung.com>
Fri, 27 Jun 2014 09:03:55 +0000 (11:03 +0200)
committerStefan Schmidt <s.schmidt@samsung.com>
Mon, 30 Jun 2014 08:13:42 +0000 (10:13 +0200)
Maybe this was here for some debugging? It does not make any sense though
to loop over all connectors but break out of the loop after the first run.

src/lib/ecore_drm/ecore_drm_output.c

index 82cb51e..b4abdd6 100644 (file)
@@ -486,7 +486,6 @@ ecore_drm_outputs_create(Ecore_Drm_Device *dev)
 
    for (i = 0; i < res->count_connectors; i++)
      {
-        if (i > 0) break;
         /* get the connector */
         if (!(conn = drmModeGetConnector(dev->drm.fd, res->connectors[i])))
           continue;