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
25102510 struct timer_list *timer = &dwork->timer;
25112511 struct work_struct *work = &dwork->work;
25122512
2513− WARN_ON_ONCE(!wq);
25142513 WARN_ON_ONCE(timer->function != delayed_work_timer_fn);
25152514 WARN_ON_ONCE(timer_pending(timer));
25162515 WARN_ON_ONCE(!list_empty(&work->entry));