From 8fb84e90cec32758ccf5102852fe27ddf5908c98 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Tue, 14 Mar 2006 21:55:57 +0000 Subject: [PATCH] It's already done in the send ... we don't have to initialize this field several times. This commit was SVN r9282. --- ompi/mca/bml/bml.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ompi/mca/bml/bml.h b/ompi/mca/bml/bml.h index 8bda875bcf..5398bb4802 100644 --- a/ompi/mca/bml/bml.h +++ b/ompi/mca/bml/bml.h @@ -225,13 +225,8 @@ typedef struct mca_bml_base_endpoint_t mca_bml_base_endpoint_t; OMPI_COMP_EXPORT OBJ_CLASS_DECLARATION(mca_bml_base_endpoint_t); - - -static inline void mca_bml_base_alloc(mca_bml_base_btl_t* bml_btl, mca_btl_base_descriptor_t** des, size_t size) { - *des = bml_btl->btl_alloc(bml_btl->btl, size); - if((*des) != NULL) { - (*des)->des_context = (void*) bml_btl; - } +static inline void mca_bml_base_alloc(mca_bml_base_btl_t* bml_btl, mca_btl_base_descriptor_t** des, size_t size) { + *des = bml_btl->btl_alloc(bml_btl->btl, size); } static inline void mca_bml_base_free(mca_bml_base_btl_t* bml_btl, mca_btl_base_descriptor_t* des) {