Revert "Add Null check on wl_surface of wl_egl_create_window()." 06/66106/2
authorGwan-gyeong Mun <kk.moon@samsung.com>
Fri, 15 Apr 2016 08:06:23 +0000 (01:06 -0700)
committerGwan-gyeong Mun <kk.moon@samsung.com>
Fri, 15 Apr 2016 08:07:55 +0000 (01:07 -0700)
This reverts commit 0dedb2b4e15dfa862fa142f0335d7deeafd87676.

Change-Id: Ib1073db0da011f2845d0a1583e0a118e1392e9b1

src/tpl_wayland_egl.c
src/wayland-egl/wayland-egl.c

index 4040e13..24106b7 100755 (executable)
@@ -263,7 +263,7 @@ __tpl_wayland_egl_display_get_window_info(tpl_display_t *display,
                int depth, int a_size)
 {
        TPL_ASSERT(display);
-       if (!window) return TPL_ERROR_INVALID_PARAMETER;
+       TPL_ASSERT(window);
 
        struct wl_egl_window *wl_egl_window = (struct wl_egl_window *)window;
 
index 5965f69..2e31633 100644 (file)
@@ -83,9 +83,6 @@ wl_egl_window_create(struct wl_surface *surface,
 {
        struct wl_egl_window *egl_window;
 
-       if (width <= 0 || height <= 0) return NULL;
-       if (!surface) return NULL;
-
        egl_window = malloc(sizeof * egl_window);
        if (!egl_window) {
                WL_EGL_ERR("failed to allocate memory for egl_window");