aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/evas
diff options
context:
space:
mode:
authorBoram Park <boram1288.park@samsung.com>2015-10-12 11:10:20 -0400
committerChris Michael <cp.michael@samsung.com>2015-10-12 11:10:39 -0400
commit62042e6ab240c8141e538b2afbf0b955a0cd1f0d (patch)
tree2fe8737231e63c91a6ee230dd3f7310283b59a4c /src/modules/evas
parentecore-evas-wayland: Fix common window configure callback to not adjust (diff)
downloadefl-62042e6ab240c8141e538b2afbf0b955a0cd1f0d.tar.gz
evas-drm: remove useless condition
Summary: 'ob->priv.last > ob->priv.last' is always false @fix Reviewers: devilhorns, stefan_schmidt Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3159
Diffstat (limited to 'src/modules/evas')
-rw-r--r--src/modules/evas/engines/drm/evas_outbuf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/evas/engines/drm/evas_outbuf.c b/src/modules/evas/engines/drm/evas_outbuf.c
index ad87b996a6..11d3dc6aab 100644
--- a/src/modules/evas/engines/drm/evas_outbuf.c
+++ b/src/modules/evas/engines/drm/evas_outbuf.c
@@ -172,9 +172,7 @@ evas_outbuf_buffer_state_get(Outbuf *ob)
/* check for valid output buffer */
if (!ob) return MODE_FULL;
- delta = (ob->priv.last - ob->priv.curr +
- (ob->priv.last > ob->priv.last ?
- 0 : ob->priv.num)) % ob->priv.num;
+ delta = (ob->priv.last - ob->priv.curr + ob->priv.num) % ob->priv.num;
/* This is the number of frame since last frame */
switch (delta)