|
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, |
@@ -46,17 +46,15 @@ int MPI_Type_set_attr (MPI_Datatype type, |
46 | 46 | MEMCHECKER( |
47 | 47 | memchecker_datatype(type); |
48 | 48 | ); |
49 | | - |
50 | | - if (MPI_PARAM_CHECK) { |
51 | | - OMPI_ERR_INIT_FINALIZE(FUNC_NAME); |
52 | | - if (NULL == type || MPI_DATATYPE_NULL == type) { |
53 | | - return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_TYPE, FUNC_NAME); |
54 | | - } else if (NULL == attribute_val) { |
55 | | - return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_ARG, FUNC_NAME); |
| 49 | + |
| 50 | + if (MPI_PARAM_CHECK) { |
| 51 | + OMPI_ERR_INIT_FINALIZE(FUNC_NAME); |
| 52 | + if (NULL == type || MPI_DATATYPE_NULL == type) { |
| 53 | + return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_TYPE, FUNC_NAME); |
| 54 | + } |
56 | 55 | } |
57 | | - } |
58 | 56 |
|
59 | | - OPAL_CR_ENTER_LIBRARY(); |
| 57 | + OPAL_CR_ENTER_LIBRARY(); |
60 | 58 |
|
61 | 59 | ret = ompi_attr_set_c(TYPE_ATTR, type, &type->d_keyhash, |
62 | 60 | type_keyval, attribute_val, false); |
|
0 commit comments