x86_64, kexec: Remove unneccessary variable page_list from machine_kexec()
PATCH 1/1 x86_64, kexec: Remove unneccessary variable page_list from machine_kexec()
Signed-off-by Horms <[email protected]>
arch/x86_64/kernel/machine_kexec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
arch/x86_64/kernel/machine_kexec.c +1 -3
@@ -184,7 +184,6 @@ void machine_kexec_cleanup(struct kimage*/ NORET_TYPE void machine_kexec(struct kimage *image) { -unsigned long page_list;unsigned long control_code_buffer;unsigned long start_pgtable;relocate_new_kernel_t rnk;
@@ -193,7 +192,6 @@ NORET_TYPE void machine_kexec(struct kimlocal_irq_disable ();/* Calculate the offsets */ - page_list = image->head; start_pgtable =page_to_pfn (image->control_code_page) <<PAGE_SHIFT ; control_code_buffer = start_pgtable +PAGE_SIZE ;
@@ -227,5 +225,5 @@ NORET_TYPE void machine_kexec(struct kimset_idt (phys_to_virt (0 ),0 );/* now call it */ rnk = (relocate_new_kernel_t ) control_code_buffer; - (*rnk)(page_list, control_code_buffer, image->start, start_pgtable); + (*rnk)(image->head, control_code_buffer, image->start, start_pgtable); }