tdm_hwc_window: do not check the null buffer 02/170302/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 19 Feb 2018 02:36:37 +0000 (11:36 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 19 Feb 2018 02:36:37 +0000 (11:36 +0900)
Change-Id: Iffb2096ff4523d5416c01496a79c4d89413fb831

src/tdm_hwc_window.c

index 08fc80c..417fcd0 100644 (file)
@@ -463,14 +463,6 @@ tdm_hwc_window_commit(tdm_hwc_window *hwc_window, tdm_hwc_window_commit_handler
 
        buffer = func_hwc_window->hwc_window_get_buffer(private_hwc_window->hwc_window_backend,
                                                                                                                   &ret);
-       if (!buffer) {
-               /* LCOV_EXCL_START */
-               _pthread_mutex_unlock(&private_display->lock);
-               TDM_ERR("no assigned buffer!!");
-               return TDM_ERROR_INVALID_PARAMETER;
-               /* LCOV_EXCL_STOP */
-       }
-
        if (buffer)
                ret = tdm_layer_set_buffer_internal(private_layer, buffer);
        else