int status;
/* Initialize loaded cloud plugins */
- retv_if(UAM_ERROR_NONE != __load_cloud_plugin(), UAM_ERROR_INTERNAL);
+ status = __load_cloud_plugin();
+ if (UAM_ERROR_NONE != status) {
+ UAM_INFO("__load_cloud_plugin failed");
+ return status;
+ }
if (!cloud_plugin || !cloud_plugin->api) {
UAM_WARN("Cloud plugin is NULL");
static void __attribute__((constructor)) _uam_cloud_init(void)
{
FUNC_ENTRY;
- int ret;
-
- ret = __init_cloud_plugin();
- ret_if(UAM_ERROR_NONE != ret);
+ int ret = __init_cloud_plugin();
+ if (UAM_ERROR_NONE != ret) {
+ UAM_WARN("__init_cloud_plugin failed [%x]", ret);
+ return;
+ }
UAM_INFO_C("__init_cloud_plugin done");
FUNC_EXIT;