Skip to content

Commit

Permalink
OMAPDSS: APPLY: cleanup dss_mgr_start_update
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomi Valkeinen committed Dec 2, 2011
1 parent 04f6643 commit 6e53ca9
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions drivers/video/omap2/dss/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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);
}
Expand Down

0 comments on commit 6e53ca9

Please sign in to comment.