Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAOS-6686 cart: Fix coverity defect #4517

Merged
merged 1 commit into from
Feb 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/cart/crt_hg.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ crt_hg_req_create(struct crt_hg_context *hg_ctx, struct crt_rpc_priv *rpc_priv)
RPC_ERROR(rpc_priv,
"HG_Create failed, hg_ret: %d\n",
hg_ret);
rc = -DER_HG;
D_GOTO(out, rc = -DER_HG);
}
} else {
rpc_priv->crp_hg_hdl = rpc_priv->crp_hdl_reuse->chh_hdl;
Expand All @@ -885,7 +885,7 @@ crt_hg_req_create(struct crt_hg_context *hg_ctx, struct crt_rpc_priv *rpc_priv)
RPC_ERROR(rpc_priv,
"HG_Reset failed, hg_ret: %d\n",
hg_ret);
rc = -DER_HG;
D_GOTO(out, rc = -DER_HG);
}
}

Expand All @@ -898,10 +898,10 @@ crt_hg_req_create(struct crt_hg_context *hg_ctx, struct crt_rpc_priv *rpc_priv)
RPC_ERROR(rpc_priv,
"HG_Set_target_id failed, hg_ret: %d\n",
hg_ret);
rc = -DER_HG;
D_GOTO(out, rc = -DER_HG);
}
}

out:
return rc;
}

Expand Down