mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
workqueue: Remove NULL wq WARN in __queue_delayed_work()
Remove the WARN_ON_ONCE(!wq) which doesn't serve any useful purpose. Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
1abaae9b38
commit
48718378ab
|
|
@ -2510,7 +2510,6 @@ static void __queue_delayed_work(int cpu, struct workqueue_struct *wq,
|
|||
struct timer_list *timer = &dwork->timer;
|
||||
struct work_struct *work = &dwork->work;
|
||||
|
||||
WARN_ON_ONCE(!wq);
|
||||
WARN_ON_ONCE(timer->function != delayed_work_timer_fn);
|
||||
WARN_ON_ONCE(timer_pending(timer));
|
||||
WARN_ON_ONCE(!list_empty(&work->entry));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user