]> www.infradead.org Git - users/jedix/linux-maple.git/commit
workqueue: Remove the unneeded cpumask empty check in wq_calc_pod_cpumask()
authorLai Jiangshan <jiangshan.ljs@antgroup.com>
Thu, 11 Jul 2024 08:35:44 +0000 (16:35 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 11 Jul 2024 22:50:34 +0000 (12:50 -1000)
commit2cb61f76be3b17d5ad42ba3b7b23c7bf98253a0b
tree46c3b2f345af55e830de45d10d807a73cb219b61
parent19af457573838785290d27dd09a59140f541d1d8
workqueue: Remove the unneeded cpumask empty check in wq_calc_pod_cpumask()

The cpumask empty check in wq_calc_pod_cpumask() has long been useless.
It just works purely as documents which states that the cpumask is not
possible empty after the function returns.

Now the code above is even more explicit that the cpumask is not empty,
so the document-only empty check can be removed.

Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c