|
2 | 2 | * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana |
3 | 3 | * University Research and Technology |
4 | 4 | * Corporation. All rights reserved. |
5 | | - * Copyright (c) 2004-2005 The University of Tennessee and The University |
| 5 | + * Copyright (c) 2004-2016 The University of Tennessee and The University |
6 | 6 | * of Tennessee Research Foundation. All rights |
7 | 7 | * reserved. |
8 | 8 | * Copyright (c) 2004-2008 High Performance Computing Center Stuttgart, |
@@ -48,14 +48,12 @@ int MPI_Type_set_attr (MPI_Datatype type, |
48 | 48 | memchecker_datatype(type); |
49 | 49 | ); |
50 | 50 |
|
51 | | - if (MPI_PARAM_CHECK) { |
52 | | - OMPI_ERR_INIT_FINALIZE(FUNC_NAME); |
53 | | - if (NULL == type || MPI_DATATYPE_NULL == type) { |
54 | | - return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_TYPE, FUNC_NAME); |
55 | | - } else if (NULL == attribute_val) { |
56 | | - return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_ARG, FUNC_NAME); |
| 51 | + if (MPI_PARAM_CHECK) { |
| 52 | + OMPI_ERR_INIT_FINALIZE(FUNC_NAME); |
| 53 | + if (NULL == type || MPI_DATATYPE_NULL == type) { |
| 54 | + return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_TYPE, FUNC_NAME); |
| 55 | + } |
57 | 56 | } |
58 | | - } |
59 | 57 |
|
60 | 58 | ret = ompi_attr_set_c(TYPE_ATTR, type, &type->d_keyhash, |
61 | 59 | type_keyval, attribute_val, false); |
|
0 commit comments