From 44df84923b4ea658106401bcec801a52ae6ed114 Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Tue, 3 Aug 2021 13:54:43 -0600 Subject: [PATCH] minor syntax fix up Signed-off-by: Howard Pritchard --- ompi/mpi/c/testall.c | 5 +++-- ompi/mpi/c/testany.c | 5 +++-- ompi/mpi/c/testsome.c | 5 +++-- ompi/mpi/c/waitall.c | 5 +++-- ompi/mpi/c/waitany.c | 5 +++-- ompi/mpi/c/waitsome.c | 5 +++-- 6 files changed, 18 insertions(+), 12 deletions(-) diff --git a/ompi/mpi/c/testall.c b/ompi/mpi/c/testall.c index a9791636417..e9b357d8530 100644 --- a/ompi/mpi/c/testall.c +++ b/ompi/mpi/c/testall.c @@ -66,8 +66,9 @@ int MPI_Testall(int count, MPI_Request requests[], int *flag, rc = MPI_ERR_REQUEST; break; } - if (requests[i] == &ompi_request_empty) continue; - else if (check_req == NULL) { + if (requests[i] == &ompi_request_empty) { + continue; + } else if (check_req == NULL) { check_req = requests[i]; } else { diff --git a/ompi/mpi/c/testany.c b/ompi/mpi/c/testany.c index adc9671796e..16b0dd5d60e 100644 --- a/ompi/mpi/c/testany.c +++ b/ompi/mpi/c/testany.c @@ -65,8 +65,9 @@ int MPI_Testany(int count, MPI_Request requests[], int *indx, int *completed, MP rc = MPI_ERR_REQUEST; break; } - if (requests[i] == &ompi_request_empty) continue; - else if (check_req == NULL) { + if (requests[i] == &ompi_request_empty) { + continue; + } else if (check_req == NULL) { check_req = requests[i]; } else { diff --git a/ompi/mpi/c/testsome.c b/ompi/mpi/c/testsome.c index 857d1600659..ea71f681d9e 100644 --- a/ompi/mpi/c/testsome.c +++ b/ompi/mpi/c/testsome.c @@ -67,8 +67,9 @@ int MPI_Testsome(int incount, MPI_Request requests[], rc = MPI_ERR_REQUEST; break; } - if (requests[indx] == &ompi_request_empty) continue; - else if (check_req == NULL) { + if (requests[indx] == &ompi_request_empty) { + continue; + } else if (check_req == NULL) { check_req = requests[indx]; } else { diff --git a/ompi/mpi/c/waitall.c b/ompi/mpi/c/waitall.c index 88610df99c2..a636cf74263 100644 --- a/ompi/mpi/c/waitall.c +++ b/ompi/mpi/c/waitall.c @@ -64,8 +64,9 @@ int MPI_Waitall(int count, MPI_Request requests[], MPI_Status statuses[]) rc = MPI_ERR_REQUEST; break; } - if (requests[i] == &ompi_request_empty) continue; - else if (check_req == NULL) { + if (requests[i] == &ompi_request_empty) { + continue; + } else if (check_req == NULL) { check_req = requests[i]; } else { diff --git a/ompi/mpi/c/waitany.c b/ompi/mpi/c/waitany.c index ad414c1304a..eab9e821dc4 100644 --- a/ompi/mpi/c/waitany.c +++ b/ompi/mpi/c/waitany.c @@ -65,8 +65,9 @@ int MPI_Waitany(int count, MPI_Request requests[], int *indx, MPI_Status *status rc = MPI_ERR_REQUEST; break; } - if (requests[i] == &ompi_request_empty) continue; - else if (check_req == NULL) { + if (requests[i] == &ompi_request_empty) { + continue; + } else if (check_req == NULL) { check_req = requests[i]; } else { diff --git a/ompi/mpi/c/waitsome.c b/ompi/mpi/c/waitsome.c index 768a5af409f..12c86c6c06f 100644 --- a/ompi/mpi/c/waitsome.c +++ b/ompi/mpi/c/waitsome.c @@ -67,8 +67,9 @@ int MPI_Waitsome(int incount, MPI_Request requests[], rc = MPI_ERR_REQUEST; break; } - if (requests[indx] == &ompi_request_empty) continue; - else if (check_req == NULL) { + if (requests[indx] == &ompi_request_empty) { + continue; + } else if (check_req == NULL) { check_req = requests[indx]; } else {