Skip to content

Commit

Permalink
percpu: clean up of schunk->map[] assignment in pcpu_setup_first_chunk
Browse files Browse the repository at this point in the history
The original assignment is a little redundent.

Signed-off-by: Baoquan He <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
  • Loading branch information
Baoquan He authored and htejun committed Jul 21, 2015
1 parent 83cb855 commit 292c24a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mm/percpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 292c24a

Please sign in to comment.