mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 08:44:14 +08:00
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>
This commit is contained in:
parent
83cb8557e8
commit
292c24a073
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user