return;
ret = halcc_hal_get_version(hal, &manifest_major, &manifest_minor, NULL);
- if (ret != 0)
+ if (ret < 0)
return;
backend_major = data->major;
}
ret = hal_common_get_backend_version(module, &backend_major, &backend_minor);
- if (ret != 0) {
+ if (ret < 0) {
set_compatibility_info_compat(module,
HAL_COMMON_BACKEND_COMPATIBILITY_INCOMPATIBLE,
"Backend has invalid version");
return -EINVAL;
ret = get_tizen_hal_version(&manifest_major, &manifest_minor);
- if (ret != 0) {
+ if (ret < 0) {
_E("Failed to get hal version, ret=%d\n", ret);
return ret;
}
return;
ret = set_owner(fd); // system_fw:system_fw
- if (ret != 0) {
+ if (ret < 0) {
close(fd);
return;
}
int ret = 0;
ret = build_compatibility_manifest_dir(manifest_dir, sizeof(manifest_dir));
- if (ret != 0)
+ if (ret < 0)
return ret;
ret = halcc_manifest_new(&manifest);
enum hal_common_backend_compatibility *arr = NULL;
ret = load_backend_compatibility(NULL);
- if (ret != 0)
+ if (ret < 0)
return ret;
if (access(HAL_COMMON_DEFAULT_BACKEND_COMPATIBILITY_PATH, F_OK) != 0)
return -EINVAL;
ret = load_backend_compatibility(NULL);
- if (ret != 0)
+ if (ret < 0)
return ret;
if (access(HAL_COMMON_DEFAULT_BACKEND_COMPATIBILITY_PATH, F_OK) != 0)
};
ret = load_backend_compatibility(&data);
- if (ret != 0)
+ if (ret < 0)
return ret;
*compatibility = g_compatibility_info[module].compat;