From: blaisorblade@yahoo.it Date: Tue, 24 May 2005 23:31:42 +0000 (+0200) Subject: [PATCH] Cleanup DEFINE_WAIT X-Git-Tag: v2.6.12-rc5~6 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7e43c84e3e5423ae72ae31e4cd7bbccfd1605194;p=~shefty%2Frdma-dev.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 17c874a8eb3..c9486c3efb4 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) \