]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/base/memory.c
Merge tag 'riscv/for-v5.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv...
[linux.git] / drivers / base / memory.c
index 763154c82eb33ebf63a5188c2d8666356f456341..6bea4f3f8040dd77c87cf34647b26515061a76a1 100644 (file)
@@ -656,7 +656,6 @@ static int init_memory_block(struct memory_block **memory,
                return -ENOMEM;
 
        mem->start_section_nr = block_id * sections_per_block;
-       mem->end_section_nr = mem->start_section_nr + sections_per_block - 1;
        mem->state = state;
        start_pfn = section_nr_to_pfn(mem->start_section_nr);
        mem->phys_device = arch_get_memory_phys_device(start_pfn);