Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25ef0958 authored by Lai Jiangshan's avatar Lai Jiangshan Committed by Tejun Heo
Browse files

workqueue: remove useless WARN_ON_ONCE()



The @cpu is fetched via smp_processor_id() in this function,
so the check is useless.

Signed-off-by: default avatarLai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent e212f361
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -4461,8 +4461,6 @@ static void wq_unbind_fn(struct work_struct *work)
	struct worker *worker;

	for_each_cpu_worker_pool(pool, cpu) {
		WARN_ON_ONCE(cpu != smp_processor_id());

		mutex_lock(&pool->attach_mutex);
		spin_lock_irq(&pool->lock);