patch-2.1.43 linux/include/linux/sched.h

Next file: linux/include/linux/selection.h
Previous file: linux/include/linux/proc_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.42/linux/include/linux/sched.h linux/include/linux/sched.h
@@ -500,13 +500,8 @@
  */
 extern inline void __add_wait_queue(struct wait_queue ** p, struct wait_queue * wait)
 {
-	struct wait_queue *head = *p;
-	struct wait_queue *next = WAIT_QUEUE_HEAD(p);
-
-	if (head)
-		next = head;
+	wait->next = *p ? : WAIT_QUEUE_HEAD(p);
 	*p = wait;
-	wait->next = next;
 }
 
 extern rwlock_t waitqueue_lock;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov