From 19502606c250e42ea390cf1710f1767b1d707642 Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Mon, 22 Jan 2018 13:42:58 +0900 Subject: [PATCH] ecore_wayland: Remove codes irrelevant to poll() poll() requires to check return value only in this case. _tdm_send_time() should not be called if error occurs on poll(). Change-Id: Ia5edeefcd5f47a9169a456e86d2601d03158ab15 --- src/lib/ecore_wayland/ecore_wl_anim_vsync.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/lib/ecore_wayland/ecore_wl_anim_vsync.c b/src/lib/ecore_wayland/ecore_wl_anim_vsync.c index 5ff36a2..49c2d67 100644 --- a/src/lib/ecore_wayland/ecore_wl_anim_vsync.c +++ b/src/lib/ecore_wayland/ecore_wl_anim_vsync.c @@ -184,7 +184,6 @@ _tdm_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread) goto done; else if (tick == 1) { - fd_set rfds; int ret; if (!vblank_wait) { @@ -195,12 +194,9 @@ _tdm_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread) else if ((ptime + _tdm_req_fps) <= ecore_time_get()) DBG("tdm vblank handler does not called in %lfms\n", ecore_time_get() - ptime); - FD_ZERO(&rfds); - FD_SET(tdm_fd, &rfds); - ret = poll(&fds, 1, -1); - if ((ret == 1) && (FD_ISSET(tdm_fd, &rfds))) + if (ret == 1) { err = tdm_client_handle_events(client); if (err != TDM_ERROR_NONE) { @@ -216,9 +212,6 @@ _tdm_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread) ERR("tdm_fd poll fail\n"); goto done; } - - vblank_wait = 0; - _tdm_send_time(ecore_time_get()); } } } -- 2.7.4