Skip to contentSkip to conversation

x86_64, kexec: Remove unneccessary variable page_list from machine_kexec()

PATCH New Horms 1 participant 1 message Jul 7, 2006

lore
Share & tools
lore

Horms

author
#0 lore raw

PATCH 1/1 x86_64, kexec: Remove unneccessary variable page_list from machine_kexec()

 arch/x86_64/kernel/machine_kexec.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/x86_64/kernel/machine_kexec.c +1 -3
index 83fb24a..44ee2a3 100644
@@ -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 kim
 	local_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 kim
 	set_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);
 }