OMAPDSS: APPLY: cleanup extra_info_update_ongoing
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 25 Nov 2011 15:35:35 +0000 (17:35 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Dec 2011 06:54:57 +0000 (08:54 +0200)
Trivial cleanup for extra_info_update_ongoing(), making the function a
bit cleaner.

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

index f54c17f849b7934f44df24e30090b39e43bae302..b6e608386219c87c3cdd2def1b0f57abe4cda524 100644 (file)
@@ -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);
@@ -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;