diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-11-01 07:58:50 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-12-02 01:54:33 -0500 |
commit | 6e53ca9dda65dd300ce150822832ba6e169643c7 (patch) | |
tree | 7d905c71ed5128d0653b6aa93f9a5e49a9f1556a /drivers/video/omap2 | |
parent | 04f6643a8657bd080344d2928dde917e0b1b3800 (diff) |
OMAPDSS: APPLY: cleanup dss_mgr_start_update
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>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r-- | drivers/video/omap2/dss/apply.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/video/omap2/dss/apply.c b/drivers/video/omap2/dss/apply.c index 7919ff384749..ba1f73c136ce 100644 --- a/drivers/video/omap2/dss/apply.c +++ b/drivers/video/omap2/dss/apply.c | |||
@@ -399,7 +399,6 @@ void dss_mgr_start_update(struct omap_overlay_manager *mgr) | |||
399 | struct manager_cache_data *mc; | 399 | struct manager_cache_data *mc; |
400 | struct overlay_cache_data *oc; | 400 | struct overlay_cache_data *oc; |
401 | const int num_ovls = dss_feat_get_num_ovls(); | 401 | const int num_ovls = dss_feat_get_num_ovls(); |
402 | const int num_mgrs = dss_feat_get_num_mgrs(); | ||
403 | int i; | 402 | int i; |
404 | 403 | ||
405 | mc = &dss_cache.manager_cache[mgr->id]; | 404 | mc = &dss_cache.manager_cache[mgr->id]; |
@@ -416,13 +415,8 @@ void dss_mgr_start_update(struct omap_overlay_manager *mgr) | |||
416 | oc->shadow_dirty = false; | 415 | oc->shadow_dirty = false; |
417 | } | 416 | } |
418 | 417 | ||
419 | for (i = 0; i < num_mgrs; ++i) { | 418 | mc = &dss_cache.manager_cache[mgr->id]; |
420 | mc = &dss_cache.manager_cache[i]; | 419 | mc->shadow_dirty = false; |
421 | if (mgr->id != i) | ||
422 | continue; | ||
423 | |||
424 | mc->shadow_dirty = false; | ||
425 | } | ||
426 | 420 | ||
427 | dispc_mgr_enable(mgr->id, true); | 421 | dispc_mgr_enable(mgr->id, true); |
428 | } | 422 | } |