From: blaisorblade@yahoo.it Date: Tue, 24 May 2005 23:31:42 +0000 (+0200) Subject: [PATCH] Cleanup DEFINE_WAIT X-Git-Tag: MMI-PSA29.97-13-9~56710^2~315 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7e43c84e3e5423ae72ae31e4cd7bbccfd1605194;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PATCH] Cleanup DEFINE_WAIT Use LIST_HEAD_INIT rather than doing it by hand in DEFINE_WAIT. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Linus Torvalds --- diff --git a/include/linux/wait.h b/include/linux/wait.h index 17c874a8eb3f..c9486c3efb4a 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -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) \