From 9232792b97faf98f0dba5bb253a1482d733b5b78 Mon Sep 17 00:00:00 2001 From: tzachid Date: Mon, 23 Jun 2008 07:52:48 +0000 Subject: [PATCH] [ibal] Fix an assert. [mlnx: 2610] git-svn-id: svn://openib.tc.cornell.edu/gen1@1295 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/inc/complib/cl_qlist.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/trunk/inc/complib/cl_qlist.h b/trunk/inc/complib/cl_qlist.h index cd8065ed..4c411f6e 100644 --- a/trunk/inc/complib/cl_qlist.h +++ b/trunk/inc/complib/cl_qlist.h @@ -349,6 +349,7 @@ __cl_primitive_remove( { p_list_item->p_next = NULL; p_list_item->p_prev = NULL; + p_list_item->p_list = NULL; } #endif /* defined( _DEBUG_ ) */ } @@ -1221,11 +1222,6 @@ cl_qlist_remove_head( if( p_item == cl_qlist_end( p_list ) ) return( p_item ); -#if defined( _DEBUG_ ) - /* Clear the item's link to the list. */ - p_item->p_list = NULL; -#endif - __cl_primitive_remove( p_item ); p_list->count--; @@ -1276,11 +1272,6 @@ cl_qlist_remove_tail( if( p_item == cl_qlist_end( p_list ) ) return( p_item ); -#if defined( _DEBUG_ ) - /* Clear the item's link to the list. */ - p_item->p_list = NULL; -#endif - __cl_primitive_remove( p_item ); p_list->count--; @@ -1329,11 +1320,6 @@ cl_qlist_remove_item( if( p_list_item == cl_qlist_end( p_list ) ) return; -#if defined( _DEBUG_ ) - /* Clear the item's link to the list. */ - p_list_item->p_list = NULL; -#endif - __cl_primitive_remove( p_list_item ); p_list->count--; -- 2.46.0