[patch 1/1] Cleanup DEFINE_WAIT

From: blaisorblade
Date: Tue May 24 2005 - 18:32:11 EST



Use LIST_HEAD_INIT rather than doing it by hand in DEFINE_WAIT.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx>
---

linux-2.6.git-paolo/include/linux/wait.h | 4 +---
1 files changed, 1 insertion(+), 3 deletions(-)

diff -puN include/linux/wait.h~clean-use-list-init include/linux/wait.h
--- linux-2.6.git/include/linux/wait.h~clean-use-list-init 2005-05-25 01:28:20.000000000 +0200
+++ linux-2.6.git-paolo/include/linux/wait.h 2005-05-25 01:28:20.000000000 +0200
@@ -386,9 +386,7 @@ int wake_bit_function(wait_queue_t *wait
wait_queue_t name = { \
.task = current, \
.func = autoremove_wake_function, \
- .task_list = { .next = &(name).task_list, \
- .prev = &(name).task_list, \
- }, \
+ .task_list = LIST_HEAD_INIT((name).task_list), \
}

#define DEFINE_WAIT_BIT(name, word, bit) \
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/