mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Horms <horms@verge.net.au>
To: linux-kernel@vger.kernel.org
Cc: Adrian Bunk <trivial@kernel.org>, Magnus Damm <damm@opensource.se>
Subject: [PATCH] i386, kexec: Remove unneccessary variable  page_list from machine_kexec()
Date: Fri, 7 Jul 2006 16:34:38 +0900	[thread overview]
Message-ID: <20060707073436.GA17741@verge.net.au> (raw)

Signed-Off-By: Horms <horms@verge.net.au>

 arch/i386/kernel/machine_kexec.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/i386/kernel/machine_kexec.c b/arch/i386/kernel/machine_kexec.c
index 511abe5..6f140d2 100644
--- a/arch/i386/kernel/machine_kexec.c
+++ b/arch/i386/kernel/machine_kexec.c
@@ -169,7 +169,6 @@ void machine_kexec_cleanup(struct kimage
  */
 NORET_TYPE void machine_kexec(struct kimage *image)
 {
-	unsigned long page_list;
 	unsigned long reboot_code_buffer;
 
 	relocate_new_kernel_t rnk;
@@ -180,8 +179,6 @@ NORET_TYPE void machine_kexec(struct kim
 	/* Compute some offsets */
 	reboot_code_buffer = page_to_pfn(image->control_code_page)
 								<< PAGE_SHIFT;
-	page_list = image->head;
-
 	/* Set up an identity mapping for the reboot_code_buffer */
 	identity_map_page(reboot_code_buffer);
 
@@ -210,5 +207,5 @@ NORET_TYPE void machine_kexec(struct kim
 
 	/* now call it */
 	rnk = (relocate_new_kernel_t) reboot_code_buffer;
-	(*rnk)(page_list, reboot_code_buffer, image->start, cpu_has_pae);
+	(*rnk)(image->head, reboot_code_buffer, image->start, cpu_has_pae);
 }

                 reply	other threads:[~2006-07-07  7:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060707073436.GA17741@verge.net.au \
    --to=horms@verge.net.au \
    --cc=damm@opensource.se \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®