Remove the WARN_ON_ONCE(!wq) which doesn't serve any useful purpose.
Showing the changes to kernel/workqueue.c (1 of 1 file). Show all
Unified · Split
| @@ -2510,7 +2510,6 @@ static void __queue_delayed_work(int cpu, struct workqueue_struct *wq, · 2509 unmodified lines | |||
| 2510 | struct timer_list *timer = &dwork->timer; | 2510 | struct timer_list *timer = &dwork->timer; |
| 2511 | struct work_struct *work = &dwork->work; | 2511 | struct work_struct *work = &dwork->work; |
| 2512 | 2512 | ||
| 2513 | WARN_ON_ONCE(!wq); | ||
| 2514 | WARN_ON_ONCE(timer->function != delayed_work_timer_fn); | 2513 | WARN_ON_ONCE(timer->function != delayed_work_timer_fn); |
| 2515 | WARN_ON_ONCE(timer_pending(timer)); | 2514 | WARN_ON_ONCE(timer_pending(timer)); |
| 2516 | WARN_ON_ONCE(!list_empty(&work->entry)); | 2515 | WARN_ON_ONCE(!list_empty(&work->entry)); |