mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
wait: use LIST_HEAD_INIT() to initialize wait_queue_head
Replace the open-coded initialization with the right macro. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20210601151120.329223-1-jwi@linux.ibm.com
This commit is contained in:
parent
459b09b5a3
commit
77eccd0dfa
@ -56,7 +56,7 @@ struct task_struct;
|
||||
|
||||
#define __WAIT_QUEUE_HEAD_INITIALIZER(name) { \
|
||||
.lock = __SPIN_LOCK_UNLOCKED(name.lock), \
|
||||
.head = { &(name).head, &(name).head } }
|
||||
.head = LIST_HEAD_INIT(name.head) }
|
||||
|
||||
#define DECLARE_WAIT_QUEUE_HEAD(name) \
|
||||
struct wait_queue_head name = __WAIT_QUEUE_HEAD_INITIALIZER(name)
|
||||
|
Loading…
Reference in New Issue
Block a user