projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02dbb72
)
sched/core: Remove the pointless BUG_ON(!task) from wake_up_q()
author
Oleg Nesterov
<oleg@redhat.com>
Mon, 10 May 2021 16:15:22 +0000
(18:15 +0200)
committer
Ingo Molnar
<mingo@kernel.org>
Wed, 12 May 2021 09:03:54 +0000
(11:03 +0200)
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
patch
|
blob
|
history
diff --git
a/kernel/sched/core.c
b/kernel/sched/core.c
index
5226cc2
..
61d1d85
100644
(file)
--- a/
kernel/sched/core.c
+++ b/
kernel/sched/core.c
@@
-585,7
+585,6
@@
void wake_up_q(struct wake_q_head *head)
struct task_struct *task;
task = container_of(node, struct task_struct, wake_q);
- BUG_ON(!task);
/* Task can safely be re-inserted now: */
node = node->next;
task->wake_q.next = NULL;