From bafc16f724b194629fb6145c9da1b4c10bb68cff Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Thu, 27 Apr 2006 17:35:05 +0000 Subject: [PATCH] We don't need the len anymore as everything is not attached to the fragment. This commit was SVN r9758. --- orte/mca/iof/base/iof_base_endpoint.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/orte/mca/iof/base/iof_base_endpoint.c b/orte/mca/iof/base/iof_base_endpoint.c index a63d0f57c2..45131424bc 100644 --- a/orte/mca/iof/base/iof_base_endpoint.c +++ b/orte/mca/iof/base/iof_base_endpoint.c @@ -515,13 +515,12 @@ int orte_iof_base_endpoint_forward( OPAL_THREAD_UNLOCK(&orte_iof_base.iof_lock); return ORTE_SUCCESS; } - rc = 0; - } else { - frag->frag_len -= rc; + rc = 0; /* don't affect the remaining length of the data */ } + frag->frag_len -= rc; } - if(frag->frag_len > 0 || len == 0) { + if(frag->frag_len >= 0) { /* handle incomplete write - also queue up 0 byte message * and recognize this as a request to close the descriptor * when all pending operations complete