sched/core: Remove the pointless BUG_ON(!task) from wake_up_q()
authorOleg Nesterov <oleg@redhat.com>
Mon, 10 May 2021 16:15:22 +0000 (18:15 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 12 May 2021 09:03:54 +0000 (11:03 +0200)
commit2b8ca1a907d5fffc85fb648bbace28ddf3420825
tree2c6deded270c29113c21f95ed9f1781976de9899
parent02dbb7246c5bbbbe1607ebdc546ba5c454a664b1
sched/core: Remove the pointless BUG_ON(!task) from wake_up_q()

container_of() can never return NULL - so don't check for it pointlessly.

[ mingo: Twiddled the changelog. ]

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210510161522.GA32644@redhat.com
kernel/sched/core.c