projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
187a1a9
)
[PATCH] Cleanup DEFINE_WAIT
author
blaisorblade@yahoo.it
<blaisorblade@yahoo.it>
Tue, 24 May 2005 23:31:42 +0000
(
01:31
+0200)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Wed, 25 May 2005 00:05:20 +0000
(17:05 -0700)
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>
include/linux/wait.h
patch
|
blob
|
history
diff --git
a/include/linux/wait.h
b/include/linux/wait.h
index 17c874a8eb3f15b839898de9368297c189c8dc21..c9486c3efb4a1ac25bf79531cc369a00c487c474 100644
(file)
--- 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) \