Signed-off-by: Arlin Davis <ardavis@ichips.intel.com>
Signed-off-by: James Lentini <jlentini@netapp.com>
{
/* 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;
}
/*