lkml.org 
[lkml]   [2005]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[patch 1/1] Cleanup DEFINE_WAIT
From
Date

Use LIST_HEAD_INIT rather than doing it by hand in DEFINE_WAIT.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-05-25 01:34    [W:0.022 / U:1.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site