Skip to content

Commit

Permalink
prov/gni/:Fix Compiler Warning
Browse files Browse the repository at this point in the history
Using gcc 6.3.0 compiler

Signed-off-by: David Noel <[email protected]>
  • Loading branch information
david-noel19 committed Jun 5, 2017
1 parent eb68396 commit 4eb4cb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions prov/gni/src/gnix_auth_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion prov/gni/src/gnix_fabric.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4eb4cb2

Please sign in to comment.