Skip to content

Commit

Permalink
OMAPDSS: APPLY: cleanup extra_info_update_ongoing
Browse files Browse the repository at this point in the history
Trivial cleanup for extra_info_update_ongoing(), making the function a
bit cleaner.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Tomi Valkeinen committed Dec 2, 2011
1 parent 3ab15b2 commit 153b6e7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions drivers/video/omap2/dss/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ static bool extra_info_update_ongoing(void)
struct omap_overlay *ovl;
struct mgr_priv_data *mp;
int i;
bool eid;

for (i = 0; i < num_ovls; ++i) {
ovl = omap_dss_get_overlay(i);
Expand All @@ -437,15 +436,11 @@ static bool extra_info_update_ongoing(void)
if (!mp->enabled)
continue;

eid = op->extra_info_dirty || op->shadow_extra_info_dirty;

if (!eid)
continue;

if (ovl_manual_update(ovl) && !mp->updating)
if (!mp->updating)
continue;

return true;
if (op->extra_info_dirty || op->shadow_extra_info_dirty)
return true;
}

return false;
Expand Down

0 comments on commit 153b6e7

Please sign in to comment.