From fe13b3ca4cfe28bb6572e98df94006370c2aaf8b Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Fri, 24 Sep 2004 07:58:09 +0000 Subject: [PATCH] Very minor cleanup This commit was SVN r2853. --- src/mca/coll/basic/coll_basic_gather.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/mca/coll/basic/coll_basic_gather.c b/src/mca/coll/basic/coll_basic_gather.c index c220c2a2b1..d9d403b8b3 100644 --- a/src/mca/coll/basic/coll_basic_gather.c +++ b/src/mca/coll/basic/coll_basic_gather.c @@ -41,17 +41,15 @@ int mca_coll_basic_gather_intra(void *sbuf, int scount, /* Everyone but root sends data and returns. */ if (rank != root) { - err = mca_pml.pml_send(sbuf, scount, sdtype, root, - MCA_COLL_BASE_TAG_GATHER, - MCA_PML_BASE_SEND_STANDARD, comm); - return err; + return mca_pml.pml_send(sbuf, scount, sdtype, root, + MCA_COLL_BASE_TAG_GATHER, + MCA_PML_BASE_SEND_STANDARD, comm); } /* I am the root, loop receiving the data. */ - err = ompi_ddt_get_extent(rdtype, &lb, &extent); - if (OMPI_SUCCESS != err) { - return OMPI_ERROR; + if (OMPI_SUCCESS != (err = ompi_ddt_get_extent(rdtype, &lb, &extent))) { + return err; } incr = extent * rcount;