tdm_output: do not check the null buffer 03/170303/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 19 Feb 2018 02:38:11 +0000 (11:38 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 19 Feb 2018 02:38:11 +0000 (11:38 +0900)
Change-Id: Iaf8d0d134a6fb683bbc1d39afba51fb7768de945

src/tdm_output.c

index 068cdcd1474a62d39dfeec0f7387cb8842ddcd94..dbd7fe4a0fb932ed28043297f920db90a58d4adb 100644 (file)
@@ -1924,14 +1924,6 @@ tdm_output_hwc_commit_client_target_buffer(tdm_output *output, tdm_output_hwc_ta
 
        buffer = func_output->output_hwc_get_client_target_buffer(private_output->output_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