diff options
author | 2021-06-01 17:11:20 +0200 | |
---|---|---|
committer | 2021-06-28 15:42:25 +0200 | |
commit | 77eccd0dfae353a64a2088d308bed3b373a4220f (patch) | |
tree | 63c4c397d31470e1f1d15f2216e6bb443a4fc087 | |
parent | sched/debug: Don't update sched_domain debug directories before sched_debug_init() (diff) | |
download | wireguard-linux-77eccd0dfae353a64a2088d308bed3b373a4220f.tar.xz wireguard-linux-77eccd0dfae353a64a2088d308bed3b373a4220f.zip |
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
-rw-r--r-- | include/linux/wait.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/wait.h b/include/linux/wait.h index fe10e8570a52..99c5f05718cd 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -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) |