From: SooChan Lim Date: Fri, 2 Jul 2021 02:01:24 +0000 (+0900) Subject: tbm_module: donot print failed message. X-Git-Tag: accepted/tizen/unified/20210705.125208~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf910ad64c1459f4450e97733a635f662f068ea4;p=platform%2Fcore%2Fuifw%2Flibtbm.git tbm_module: donot print failed message. 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 --- diff --git a/src/tbm_module.c b/src/tbm_module.c index 22dc061..e53f69c 100644 --- a/src/tbm_module.c +++ b/src/tbm_module.c @@ -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.");