Skip to content

Commit

Permalink
[PATCH] Cleanup DEFINE_WAIT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
blaisorblade@yahoo.it authored and Linus Torvalds committed May 25, 2005
1 parent 187a1a9 commit 7e43c84
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/linux/wait.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit 7e43c84

Please sign in to comment.