Author: jerry
Date: 2006-08-29 16:05:01 +0000 (Tue, 29 Aug 2006)
New Revision: 17916

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17916

Log:
DLIST_REMOVE macro fix
Modified:
   branches/SAMBA_3_0_RELEASE/source/include/dlinklist.h


Changeset:
Modified: branches/SAMBA_3_0_RELEASE/source/include/dlinklist.h
===================================================================
--- branches/SAMBA_3_0_RELEASE/source/include/dlinklist.h       2006-08-29 
16:04:37 UTC (rev 17915)
+++ branches/SAMBA_3_0_RELEASE/source/include/dlinklist.h       2006-08-29 
16:05:01 UTC (rev 17916)
@@ -46,7 +46,7 @@
                if ((p)->prev) (p)->prev->next = (p)->next; \
                if ((p)->next) (p)->next->prev = (p)->prev; \
        } \
-       if ((p) && ((p) != (list))) (p)->next = (p)->prev = NULL; \
+       if ((p) != (list)) (p)->next = (p)->prev = NULL; \
 }
 
 /* promote an element to the top of the list */

Reply via email to