container_of() can never return NULL - so don't check for it pointlessly. [ mingo: Twiddled the changelog. ]
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -585,7 +585,6 @@ void wake_up_q(struct wake_q_head *head) · 584 unmodified lines | |||
| 585 | struct task_struct *task; | 585 | struct task_struct *task; |
| 586 | 586 | ||
| 587 | task = container_of(node, struct task_struct, wake_q); | 587 | task = container_of(node, struct task_struct, wake_q); |
| 588 | BUG_ON(!task); | ||
| 589 | /* Task can safely be re-inserted now: */ | 588 | /* Task can safely be re-inserted now: */ |
| 590 | node = node->next; | 589 | node = node->next; |
| 591 | task->wake_q.next = NULL; | 590 | task->wake_q.next = NULL; |