]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
workqueue: Remove NULL wq WARN in __queue_delayed_work()
authorTejun Heo <tj@kernel.org>
Tue, 17 Mar 2026 17:51:08 +0000 (07:51 -1000)
committerTejun Heo <tj@kernel.org>
Tue, 17 Mar 2026 17:53:44 +0000 (07:53 -1000)
Remove the WARN_ON_ONCE(!wq) which doesn't serve any useful purpose.

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c

index c1743b20a52449c084d58ae9a07a630134374e72..63acaa3e1d6a87ff7476a6ffe38b72f2e1c71d06 100644 (file)
@@ -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));