From: Igor Stoppa Date: Fri, 31 Aug 2018 19:44:22 +0000 (+0300) Subject: mm: percpu: remove unnecessary unlikely() X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~5994^2~1 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=0b59c25f91002c1dec0d0d848e5aaefa5f213c85;p=linux.git 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 Cc: Tejun Heo Cc: zijun_hu Cc: Christoph Lameter Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Dennis Zhou --- 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, BUG_ON(ai->nr_groups != 1); upa = ai->alloc_size/ai->unit_size; nr_g0_units = roundup(num_possible_cpus(), upa); - if (unlikely(WARN_ON(ai->groups[0].nr_units != nr_g0_units))) { + if (WARN_ON(ai->groups[0].nr_units != nr_g0_units)) { pcpu_free_alloc_info(ai); return -EINVAL; }