Skip to content

Commit dbb5e03

Browse files
committed
remove some confusion about MPI_T_BIND_NO_OBJECT
Signed-off-by: Howard Pritchard <[email protected]>
1 parent 15de777 commit dbb5e03

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

ompi/mpi/tool/cvar_handle_alloc.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@ int MPI_T_cvar_handle_alloc (int cvar_index, void *obj_handle,
4343
return MPI_T_ERR_INVALID;
4444
}
4545

46-
/*
47-
* we allow NULL since many existing tests (both ompi and mpich) pass NULL
48-
* for this argument.
49-
*/
50-
51-
if ((NULL != obj_handle) && (MPI_T_BIND_NO_OBJECT != obj_handle)) {
46+
if (NULL != obj_handle) {
5247
if (ompit_obj_invalid(obj_handle)) {
5348
return MPI_T_ERR_INVALID_HANDLE;
5449
}

ompi/mpi/tool/pvar_handle_alloc.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ int MPI_T_pvar_handle_alloc(MPI_T_pvar_session session, int pvar_index,
3939
return MPI_T_ERR_NOT_INITIALIZED;
4040
}
4141

42-
/*
43-
* we allow NULL since many existing tests (both ompi and mpich) pass NULL
44-
* for this argument.
45-
*/
46-
if ((NULL != obj_handle) && (MPI_T_BIND_NO_OBJECT != obj_handle)) {
42+
if (NULL != obj_handle) {
4743
if (ompit_obj_invalid(obj_handle)) {
4844
return MPI_T_ERR_INVALID_HANDLE;
4945
}

0 commit comments

Comments
 (0)