tbm_module: donot print failed message. 31/260731/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 2 Jul 2021 02:01:24 +0000 (11:01 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 2 Jul 2021 02:01:24 +0000 (11:01 +0900)
libtbm calls the bufmgr_alloc_bo if bufmgr_alloc_bo_with_format.
So we don't need to print the failed message.

Change-Id: Ic87149028dddb3e9537d70240fb2e5aa98298e3d

src/tbm_module.c

index 22dc061..e53f69c 100644 (file)
@@ -821,7 +821,8 @@ tbm_module_alloc_bo_data_with_format(tbm_module *module, int format, int bo_idx,
                bo_data->hal_bo = hal_tbm_bufmgr_alloc_bo_with_format(module->hal_bufmgr,
                                                                                        format, bo_idx, width, height, bpp,
                                                                                        (hal_tbm_bo_memory_type)flags, (hal_tbm_error *)error);
-               TBM_GOTO_VAL_IF_FAIL(bo_data->hal_bo, failed);
+               if (!bo_data->hal_bo)
+                       goto failed;
                break;
 /* LCOV_EXCL_START */
        case TBM_MODULE_TYPE_TBM_BACKEND:
@@ -833,7 +834,8 @@ tbm_module_alloc_bo_data_with_format(tbm_module *module, int format, int bo_idx,
                }
 
                bo_data->backend_bo_data = bufmgr_func->bufmgr_alloc_bo_with_format(module->bufmgr_data, format, bo_idx, width, height, flags, error);
-               TBM_GOTO_VAL_IF_FAIL(bo_data->backend_bo_data, failed);
+               if (!bo_data->backend_bo_data)
+                       goto failed;
                break;
        case TBM_MODULE_TYPE_BUFMGR_BACKEND:
                TBM_WRN("!!WARNING: This backend interface will be DEPRECATED after Tizen 6.5.");