summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorBaoquan He <bhe@redhat.com>2015-07-20 22:55:28 +0800
committerTejun Heo <tj@kernel.org>2015-07-21 11:31:00 -0400
commit292c24a073ee34c629966eec8b48d54b0a206667 (patch)
treeaa8954b515cb5e6a01052ff966ee0cb6458f4e41 /mm
parent83cb8557e8d2c8e5eddc64840c437299343a7960 (diff)
downloadop-kernel-dev-292c24a073ee34c629966eec8b48d54b0a206667.zip
op-kernel-dev-292c24a073ee34c629966eec8b48d54b0a206667.tar.gz
percpu: clean up of schunk->map[] assignment in pcpu_setup_first_chunk
The original assignment is a little redundent. Signed-off-by: Baoquan He <bhe@redhat.com> Acked-by: Christoph Lameter <cl@linux.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/percpu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/percpu.c b/mm/percpu.c
index 2dd7448..a63b4d8 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -1668,9 +1668,8 @@ int __init pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai,
schunk->map[1] = ai->static_size;
schunk->map_used = 1;
if (schunk->free_size)
- schunk->map[++schunk->map_used] = 1 | (ai->static_size + schunk->free_size);
- else
- schunk->map[1] |= 1;
+ schunk->map[++schunk->map_used] = ai->static_size + schunk->free_size;
+ schunk->map[schunk->map_used] |= 1;
/* init dynamic chunk if necessary */
if (dyn_size) {
OpenPOWER on IntegriCloud