History

workqueue: Remove NULL wq WARN in __queue_delayed_work()

Remove the WARN_ON_ONCE(!wq) which doesn't serve any useful purpose.

Tejun Heo committed 8 months ago

Commit 48718371 parent 1abaae91 file · +0 −1Browse files

Showing the changes to kernel/workqueue.c (1 of 1 file). Show all

Unified · Split

kernel/workqueue.c+0−1
@@ -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));