patch-2.4.8 linux/include/asm-s390/queue.h

Next file: linux/include/asm-s390/s390dyn.h
Previous file: linux/include/asm-s390/processor.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.7/linux/include/asm-s390/queue.h linux/include/asm-s390/queue.h
@@ -7,7 +7,8 @@
  *
  *  A little set of queue utilies.
  */
-
+#ifndef __ASM_QUEUE_H
+#define __ASM_QUEUE_H
 #include <linux/stddef.h>
 
 typedef struct queue
@@ -29,12 +30,11 @@
 }
 
 static __inline__ void enqueue_tail(qheader *qhead,queue *member)
-{
-	queue *tail=qhead->tail;
-	member->next=NULL;
-	
+{	
 	if(member)
 	{
+		queue *tail=qhead->tail;
+
 		if(tail)
 			tail->next=member;
 		else
@@ -166,5 +166,5 @@
 	return(0);
 }
 
-
+#endif /* __ASM_QUEUE_H */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)