percpu: clean up of schunk->map[] assignment in pcpu_setup_first_chunk
authorBaoquan He <bhe@redhat.com>
Mon, 20 Jul 2015 14:55:28 +0000 (22:55 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 21 Jul 2015 15:31:00 +0000 (11:31 -0400)
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>
mm/percpu.c

index 2dd74487a0aff653814db79e9bd2251e87cf9981..a63b4d82a14157136f2f50e2a3c264a6484ef993 100644 (file)
@@ -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) {