Fixed wrong use of NULL checking macro. 16/255916/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Thu, 25 Mar 2021 03:51:06 +0000 (12:51 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Thu, 25 Mar 2021 03:51:06 +0000 (12:51 +0900)
Change-Id: I9d1d11823a15395dac38360aff25d9c991351f53
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wl_egl_thread.c

index 41bc081..d79e3af 100755 (executable)
@@ -2028,7 +2028,7 @@ __tpl_wl_egl_surface_set_rotation_capability(tpl_surface_t *surface,
 
        wl_egl_surface = (tpl_wl_egl_surface_t *)surface->backend.data;
 
-       TPL_CHECK_ON_TRUE_RETURN_VAL(wl_egl_surface, TPL_ERROR_INVALID_PARAMETER);
+       TPL_CHECK_ON_NULL_RETURN_VAL(wl_egl_surface, TPL_ERROR_INVALID_PARAMETER);
 
        TPL_INFO("[SET_PREROTATION_CAPABILITY]",
                         "wl_egl_surface(%p) prerotation capability set to [%s]",
@@ -2048,7 +2048,7 @@ __tpl_wl_egl_surface_set_post_interval(tpl_surface_t *surface,
 
        wl_egl_surface = (tpl_wl_egl_surface_t *)surface->backend.data;
 
-       TPL_CHECK_ON_TRUE_RETURN_VAL(wl_egl_surface, TPL_ERROR_INVALID_PARAMETER);
+       TPL_CHECK_ON_NULL_RETURN_VAL(wl_egl_surface, TPL_ERROR_INVALID_PARAMETER);
 
        TPL_INFO("[SET_POST_INTERVAL]",
                         "wl_egl_surface(%p) post_interval(%d -> %d)",