diff options
author | Igor Stoppa <igor.stoppa@gmail.com> | 2018-08-31 15:44:22 -0400 |
---|---|---|
committer | Dennis Zhou <dennis@kernel.org> | 2018-09-13 00:23:23 -0400 |
commit | 0b59c25f91002c1dec0d0d848e5aaefa5f213c85 (patch) | |
tree | 0707a6d5861766f2c22915c07bce038d8be52eb4 | |
parent | 11da3a7f84f19c26da6f86af878298694ede0804 (diff) |
mm: percpu: remove unnecessary unlikely()
WARN_ON() already contains an unlikely(), so it's not necessary to
wrap it into another.
Signed-off-by: Igor Stoppa <igor.stoppa@huawei.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: zijun_hu <zijun_hu@htc.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Dennis Zhou <dennis@kernel.org>
-rw-r--r-- | mm/percpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index a749d4d96e3e..f5c2796fe63e 100644 --- a/mm/percpu.c +++ b/mm/percpu.c | |||
@@ -2588,7 +2588,7 @@ int __init pcpu_page_first_chunk(size_t reserved_size, | |||
2588 | BUG_ON(ai->nr_groups != 1); | 2588 | BUG_ON(ai->nr_groups != 1); |
2589 | upa = ai->alloc_size/ai->unit_size; | 2589 | upa = ai->alloc_size/ai->unit_size; |
2590 | nr_g0_units = roundup(num_possible_cpus(), upa); | 2590 | nr_g0_units = roundup(num_possible_cpus(), upa); |
2591 | if (unlikely(WARN_ON(ai->groups[0].nr_units != nr_g0_units))) { | 2591 | if (WARN_ON(ai->groups[0].nr_units != nr_g0_units)) { |
2592 | pcpu_free_alloc_info(ai); | 2592 | pcpu_free_alloc_info(ai); |
2593 | return -EINVAL; | 2593 | return -EINVAL; |
2594 | } | 2594 | } |