Skip to content

Commit a6e00e3

Browse files
author
Sergey Oblomov
committed
PML/UCX/WPOOL: fixed coverity issue
- fixed issue reported by coverity Signed-off-by: Sergey Oblomov <[email protected]>
1 parent 282be20 commit a6e00e3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

opal/mca/common/ucx/common_ucx_wpool.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,9 @@ opal_common_ucx_wpool_init(opal_common_ucx_wpool_t *wpool,
215215
err_wpool_add:
216216
free(wpool->recv_waddr);
217217
err_get_addr:
218-
if (NULL != wpool) {
219-
OBJ_RELEASE(winfo);
220-
OBJ_RELEASE(wpool->dflt_winfo);
221-
wpool->dflt_winfo = NULL;
222-
}
218+
OBJ_RELEASE(winfo);
219+
OBJ_RELEASE(wpool->dflt_winfo);
220+
wpool->dflt_winfo = NULL;
223221
err_worker_create:
224222
ucp_cleanup(wpool->ucp_ctx);
225223
err_ucp_init:

0 commit comments

Comments
 (0)