From: Arlin Davis Date: Wed, 8 Mar 2006 14:24:26 +0000 (+0000) Subject: r5684: Remove unused NO_EP_STATE. X-Git-Tag: libdapl-1.2.1~58 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=afd558cbdada66e01aa553364b9a126da00dbe65;p=~ardavis%2Fdapl.git r5684: Remove unused NO_EP_STATE. Signed-off-by: Arlin Davis Signed-off-by: James Lentini --- diff --git a/dapl/common/dapl_cr_callback.c b/dapl/common/dapl_cr_callback.c index 31ede8d..e36beda 100644 --- a/dapl/common/dapl_cr_callback.c +++ b/dapl/common/dapl_cr_callback.c @@ -532,18 +532,10 @@ dapli_get_sp_ep ( { /* Remove the CR from the queue */ dapl_sp_remove_cr (sp_ptr, cr_ptr); - /* - * Last event, time to clean up and dispose of the resource. - * Put the EP in a state that it can't get hurt, avoiding - * race conditions between now and when it gets disconnected, - * i.e. an app invoking ep_disconnect before the callback - * code above finishes. - */ -#define NO_EP_STATE 111 /* larger than any ep state */ + if (ep_ptr != NULL) { ep_ptr->cr_ptr = NULL; - ep_ptr->param.ep_state = NO_EP_STATE; } /*