diff --git a/ompi/mca/btl/ugni/btl_ugni_prepare.h b/ompi/mca/btl/ugni/btl_ugni_prepare.h index 8dd9d4d725..a1408f2405 100644 --- a/ompi/mca/btl/ugni/btl_ugni_prepare.h +++ b/ompi/mca/btl/ugni/btl_ugni_prepare.h @@ -87,7 +87,6 @@ mca_btl_ugni_prepare_src_send_buffered (struct mca_btl_base_module_t *btl, mca_btl_ugni_base_frag_t *frag = NULL; uint32_t iov_count = 1; struct iovec iov; - size_t max_size = *size; int rc; if (OPAL_UNLIKELY(true == use_eager_get)) { @@ -120,7 +119,7 @@ mca_btl_ugni_prepare_src_send_buffered (struct mca_btl_base_module_t *btl, iov.iov_len = *size; iov.iov_base = (IOVBASE_TYPE *) frag->base.super.ptr; - rc = opal_convertor_pack (convertor, &iov, &iov_count, &max_size); + rc = opal_convertor_pack (convertor, &iov, &iov_count, size); if (OPAL_UNLIKELY(rc < 0)) { mca_btl_ugni_frag_return (frag); return NULL;