diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-06-17 13:20:30 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-06-17 13:20:30 +0000 |
commit | 7acb77a6e7bddd4c4c5aa975bbf976927c013798 (patch) | |
tree | 4139829ec6edb85f73774bb95cdec376758bfc73 /include/linux/sched.h | |
parent | 64d58d4c8cd6a89ee218301ec0dc0ebfec91a4db (diff) |
Merge with 2.1.43.
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 215774036..189194a49 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -500,13 +500,8 @@ extern inline struct file *file_from_fd(const unsigned int fd) */ 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; |