[PATCH] Cleanup DEFINE_WAIT
Use LIST_HEAD_INIT rather than doing it by hand in DEFINE_WAIT. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
187a1a94d6
commit
7e43c84e3e
@ -386,9 +386,7 @@ int wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
|
||||
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) \
|
||||
|
Loading…
Reference in New Issue
Block a user