]> Pileus Git - ~andy/linux/commitdiff
OMAPDSS: APPLY: cleanup dss_mgr_start_update
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 1 Nov 2011 11:58:50 +0000 (13:58 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Dec 2011 06:54:33 +0000 (08:54 +0200)
dss_mgr_start_update() has a loop, of which sole purpose is to find the
manager used for this update. The whole loop is extra, as we already
know the manager.

Remove the loop.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/apply.c

index 7919ff38474926fa6332bd5f6c52d2b0e8eaa3d3..ba1f73c136ce8cb3438b07236e253e6b87fd7b07 100644 (file)
@@ -399,7 +399,6 @@ void dss_mgr_start_update(struct omap_overlay_manager *mgr)
        struct manager_cache_data *mc;
        struct overlay_cache_data *oc;
        const int num_ovls = dss_feat_get_num_ovls();
-       const int num_mgrs = dss_feat_get_num_mgrs();
        int i;
 
        mc = &dss_cache.manager_cache[mgr->id];
@@ -416,13 +415,8 @@ void dss_mgr_start_update(struct omap_overlay_manager *mgr)
                oc->shadow_dirty = false;
        }
 
-       for (i = 0; i < num_mgrs; ++i) {
-               mc = &dss_cache.manager_cache[i];
-               if (mgr->id != i)
-                       continue;
-
-               mc->shadow_dirty = false;
-       }
+       mc = &dss_cache.manager_cache[mgr->id];
+       mc->shadow_dirty = false;
 
        dispc_mgr_enable(mgr->id, true);
 }