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:
}
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.");