diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2014-06-03 03:32:41 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-06-19 12:28:20 -0400 |
commit | 25ef09586df2b84a595c00ed058916122ff03297 (patch) | |
tree | e05aea3312202f540af3e6a662c148339d425a72 /kernel/workqueue.c | |
parent | e212f361fb5a82b91f0ba2fc9690a47a57e414d1 (diff) |
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: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r-- | kernel/workqueue.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index fcdf0430595a..4cfcd027e4bf 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -4461,8 +4461,6 @@ static void wq_unbind_fn(struct work_struct *work) | |||
4461 | struct worker *worker; | 4461 | struct worker *worker; |
4462 | 4462 | ||
4463 | for_each_cpu_worker_pool(pool, cpu) { | 4463 | for_each_cpu_worker_pool(pool, cpu) { |
4464 | WARN_ON_ONCE(cpu != smp_processor_id()); | ||
4465 | |||
4466 | mutex_lock(&pool->attach_mutex); | 4464 | mutex_lock(&pool->attach_mutex); |
4467 | spin_lock_irq(&pool->lock); | 4465 | spin_lock_irq(&pool->lock); |
4468 | 4466 | ||