Commit 7e43c84e authored by blaisorblade@yahoo.it's avatar blaisorblade@yahoo.it Committed by Linus Torvalds

[PATCH] Cleanup DEFINE_WAIT

Use LIST_HEAD_INIT rather than doing it by hand in DEFINE_WAIT.
Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 187a1a94
...@@ -386,9 +386,7 @@ int wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *key); ...@@ -386,9 +386,7 @@ int wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
wait_queue_t name = { \ wait_queue_t name = { \
.task = current, \ .task = current, \
.func = autoremove_wake_function, \ .func = autoremove_wake_function, \
.task_list = { .next = &(name).task_list, \ .task_list = LIST_HEAD_INIT((name).task_list), \
.prev = &(name).task_list, \
}, \
} }
#define DEFINE_WAIT_BIT(name, word, bit) \ #define DEFINE_WAIT_BIT(name, word, bit) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment