1
1

- remove dead code found by coverity

This commit was SVN r15685.
Этот коммит содержится в:
Sven Stork 2007-07-30 15:36:00 +00:00
родитель 71915f269c
Коммит 80cdafb8f4
4 изменённых файлов: 0 добавлений и 10 удалений

Просмотреть файл

@ -65,8 +65,6 @@ int MPI_Accumulate(void *origin_addr, int origin_count, MPI_Datatype origin_data
rc = MPI_ERR_RMA_SYNC;
} else if ( target_disp < 0 ) {
rc = MPI_ERR_DISP;
} else if ( (origin_count < 0) || (target_count < 0) ) {
rc = MPI_ERR_COUNT;
} else {
OMPI_CHECK_DATATYPE_FOR_ONE_SIDED(rc, origin_datatype, origin_count);
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,
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 */

Просмотреть файл

@ -59,8 +59,6 @@ int MPI_Get(void *origin_addr, int origin_count,
rc = MPI_ERR_RMA_SYNC;
} else if ( target_disp < 0 ) {
rc = MPI_ERR_DISP;
} else if ( (origin_count < 0) || (target_count < 0) ) {
rc = MPI_ERR_COUNT;
} else {
OMPI_CHECK_DATATYPE_FOR_ONE_SIDED(rc, origin_datatype, origin_count);
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;
} else if ( target_disp < 0 ) {
rc = MPI_ERR_DISP;
} else if ( (origin_count < 0) || (target_count < 0) ) {
rc = MPI_ERR_COUNT;
} else {
OMPI_CHECK_DATATYPE_FOR_ONE_SIDED(rc, origin_datatype, origin_count);
if (OMPI_SUCCESS == rc) {