tpl_worker_thread: drop checking of fence_result on __tpl_worker_thread_loop() 44/101244/1
authorMun, Gwan-gyeong <kk.moon@samsung.com>
Wed, 30 Nov 2016 12:21:04 +0000 (21:21 +0900)
committerMun, Gwan-gyeong <kk.moon@samsung.com>
Wed, 30 Nov 2016 12:21:04 +0000 (21:21 +0900)
fence_result is always 1 in the  switch case statement of fence_result == 1
so we should drop checking of fence_result on __tpl_worker_thread_loop()

Change-Id: Iae6db812889dcb0adaeb202d90711f7c1089d889

src/tpl_worker_thread.c

index 6d62c4b..7946e4f 100644 (file)
@@ -377,9 +377,7 @@ cont_epoll_wait:
                                                                if (surface->draw_done)
                                                                        surface->draw_done(surface->surface,
                                                                                                           surface->draw_wait_buffer,
-                                                                                                          fence_result == 1 ?
-                                                                                                          TPL_ERROR_NONE :
-                                                                                                          TPL_ERROR_INVALID_OPERATION);
+                                                                                                          TPL_ERROR_NONE);
                                                                surface->draw_wait_buffer = NULL;
                                                                break;
                                                        case -1: