- remove dead code found by coverity
This commit was SVN r15685.
Этот коммит содержится в:
родитель
71915f269c
Коммит
80cdafb8f4
@ -65,8 +65,6 @@ int MPI_Accumulate(void *origin_addr, int origin_count, MPI_Datatype origin_data
|
|||||||
rc = MPI_ERR_RMA_SYNC;
|
rc = MPI_ERR_RMA_SYNC;
|
||||||
} else if ( target_disp < 0 ) {
|
} else if ( target_disp < 0 ) {
|
||||||
rc = MPI_ERR_DISP;
|
rc = MPI_ERR_DISP;
|
||||||
} else if ( (origin_count < 0) || (target_count < 0) ) {
|
|
||||||
rc = MPI_ERR_COUNT;
|
|
||||||
} else {
|
} else {
|
||||||
OMPI_CHECK_DATATYPE_FOR_ONE_SIDED(rc, origin_datatype, origin_count);
|
OMPI_CHECK_DATATYPE_FOR_ONE_SIDED(rc, origin_datatype, origin_count);
|
||||||
if (OMPI_SUCCESS == rc) {
|
if (OMPI_SUCCESS == rc) {
|
||||||
|
@ -61,10 +61,6 @@ int MPI_Dims_create(int nnodes, int ndims, int *dims)
|
|||||||
return OMPI_ERRHANDLER_INVOKE (MPI_COMM_WORLD,
|
return OMPI_ERRHANDLER_INVOKE (MPI_COMM_WORLD,
|
||||||
MPI_ERR_DIMS, FUNC_NAME);
|
MPI_ERR_DIMS, FUNC_NAME);
|
||||||
}
|
}
|
||||||
if (0 == ndims && 0 >= nnodes) {
|
|
||||||
return OMPI_ERRHANDLER_INVOKE (MPI_COMM_WORLD,
|
|
||||||
MPI_ERR_ARG, FUNC_NAME);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get # of free-to-be-assigned processes and # of free dimensions */
|
/* Get # of free-to-be-assigned processes and # of free dimensions */
|
||||||
|
@ -59,8 +59,6 @@ int MPI_Get(void *origin_addr, int origin_count,
|
|||||||
rc = MPI_ERR_RMA_SYNC;
|
rc = MPI_ERR_RMA_SYNC;
|
||||||
} else if ( target_disp < 0 ) {
|
} else if ( target_disp < 0 ) {
|
||||||
rc = MPI_ERR_DISP;
|
rc = MPI_ERR_DISP;
|
||||||
} else if ( (origin_count < 0) || (target_count < 0) ) {
|
|
||||||
rc = MPI_ERR_COUNT;
|
|
||||||
} else {
|
} else {
|
||||||
OMPI_CHECK_DATATYPE_FOR_ONE_SIDED(rc, origin_datatype, origin_count);
|
OMPI_CHECK_DATATYPE_FOR_ONE_SIDED(rc, origin_datatype, origin_count);
|
||||||
if (OMPI_SUCCESS == rc) {
|
if (OMPI_SUCCESS == rc) {
|
||||||
|
@ -62,8 +62,6 @@ int MPI_Put(void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
|||||||
rc = MPI_ERR_TYPE;
|
rc = MPI_ERR_TYPE;
|
||||||
} else if ( target_disp < 0 ) {
|
} else if ( target_disp < 0 ) {
|
||||||
rc = MPI_ERR_DISP;
|
rc = MPI_ERR_DISP;
|
||||||
} else if ( (origin_count < 0) || (target_count < 0) ) {
|
|
||||||
rc = MPI_ERR_COUNT;
|
|
||||||
} else {
|
} else {
|
||||||
OMPI_CHECK_DATATYPE_FOR_ONE_SIDED(rc, origin_datatype, origin_count);
|
OMPI_CHECK_DATATYPE_FOR_ONE_SIDED(rc, origin_datatype, origin_count);
|
||||||
if (OMPI_SUCCESS == rc) {
|
if (OMPI_SUCCESS == rc) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user