diff options
author | Ville Syrjälä <ville.syrjala@nokia.com> | 2010-03-17 19:13:44 +0100 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-08-03 14:18:46 +0200 |
commit | 2ad0c50b84ee984aa58b09b46aef5c9f1d95e469 (patch) | |
tree | 6d3c9ef9eec3aaf64c099317a3fce0442e5055ee | |
parent | OMAP: DSS2: OMAPFB: Check var even if there isn't memory (diff) | |
download | linux-2ad0c50b84ee984aa58b09b46aef5c9f1d95e469.tar.xz linux-2ad0c50b84ee984aa58b09b46aef5c9f1d95e469.zip |
OMAP: DSS2: OMAPFB: Skip unnecessary set_overlay_info()
In omapfb_enable_overlay() if the overlay state is already what we want
skip the set_overlay_info().
Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb.h b/drivers/video/omap2/omapfb/omapfb.h index cd54fdbfd8bb..c9866be0460a 100644 --- a/drivers/video/omap2/omapfb/omapfb.h +++ b/drivers/video/omap2/omapfb/omapfb.h @@ -148,6 +148,8 @@ static inline int omapfb_overlay_enable(struct omap_overlay *ovl, struct omap_overlay_info info; ovl->get_overlay_info(ovl, &info); + if (info.enabled == enable) + return 0; info.enabled = enable; return ovl->set_overlay_info(ovl, &info); } |