Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

Tejun Heo 48718378 1abaae9b

-1
-1
kernel/workqueue.c
··· 2510 2510 struct timer_list *timer = &dwork->timer; 2511 2511 struct work_struct *work = &dwork->work; 2512 2512 2513 - WARN_ON_ONCE(!wq); 2514 2513 WARN_ON_ONCE(timer->function != delayed_work_timer_fn); 2515 2514 WARN_ON_ONCE(timer_pending(timer)); 2516 2515 WARN_ON_ONCE(!list_empty(&work->entry));