From: Tomi Valkeinen Date: Fri, 25 Nov 2011 15:35:35 +0000 (+0200) Subject: OMAPDSS: APPLY: cleanup extra_info_update_ongoing X-Git-Tag: v3.3-rc3~7^2~6^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=153b6e7357778267e6914f2370a059e79a751371;p=platform%2Fkernel%2Flinux-3.10.git OMAPDSS: APPLY: cleanup extra_info_update_ongoing Trivial cleanup for extra_info_update_ongoing(), making the function a bit cleaner. Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/omap2/dss/apply.c b/drivers/video/omap2/dss/apply.c index f54c17f..b6e6083 100644 --- a/drivers/video/omap2/dss/apply.c +++ b/drivers/video/omap2/dss/apply.c @@ -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;