diff --git a/prov/gni/src/gnix_auth_key.c b/prov/gni/src/gnix_auth_key.c index 7cb98a53df7..7b6e6f9b242 100644 --- a/prov/gni/src/gnix_auth_key.c +++ b/prov/gni/src/gnix_auth_key.c @@ -266,7 +266,7 @@ _gnix_auth_key_lookup(uint8_t *auth_key, size_t auth_key_size) int _gnix_auth_key_subsys_init(void) { - int ret; + int ret = FI_SUCCESS; gnix_hashtable_attr_t attr = { .ht_initial_size = 8, @@ -282,7 +282,7 @@ int _gnix_auth_key_subsys_init(void) ret = _gnix_ht_init(&__gnix_auth_key_ht, &attr); assert(ret == FI_SUCCESS); - return FI_SUCCESS; + return ret; } int _gnix_auth_key_subsys_fini(void) diff --git a/prov/gni/src/gnix_fabric.c b/prov/gni/src/gnix_fabric.c index 900afce9545..b4ef72447fa 100644 --- a/prov/gni/src/gnix_fabric.c +++ b/prov/gni/src/gnix_fabric.c @@ -843,7 +843,7 @@ static int __gnix_auth_key_set_val( { struct gnix_auth_key *info; int v; - int ret; + int ret = FI_SUCCESS; if (!val) return -FI_EINVAL;