diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-02-09 17:24:09 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-02-09 17:24:09 -0500 |
commit | bfc734b24671b2639218ae2ef53af91dfd30b6c9 (patch) | |
tree | bd75156828163379de77fe6577c1418f3e62ca7c /arch | |
parent | 3701d863b43d05ffeb223d269583398f914fb5d3 (diff) |
x86: avoid unused variable warning in mm/init_64.c
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/mm/init_64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 5fe880fc305d..620d2b6b6bf4 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c | |||
@@ -532,9 +532,9 @@ void __init mem_init(void) | |||
532 | 532 | ||
533 | void free_init_pages(char *what, unsigned long begin, unsigned long end) | 533 | void free_init_pages(char *what, unsigned long begin, unsigned long end) |
534 | { | 534 | { |
535 | unsigned long addr; | 535 | unsigned long addr = begin; |
536 | 536 | ||
537 | if (begin >= end) | 537 | if (addr >= end) |
538 | return; | 538 | return; |
539 | 539 | ||
540 | /* | 540 | /* |
@@ -549,7 +549,7 @@ void free_init_pages(char *what, unsigned long begin, unsigned long end) | |||
549 | #else | 549 | #else |
550 | printk(KERN_INFO "Freeing %s: %luk freed\n", what, (end - begin) >> 10); | 550 | printk(KERN_INFO "Freeing %s: %luk freed\n", what, (end - begin) >> 10); |
551 | 551 | ||
552 | for (addr = begin; addr < end; addr += PAGE_SIZE) { | 552 | for (; addr < end; addr += PAGE_SIZE) { |
553 | ClearPageReserved(virt_to_page(addr)); | 553 | ClearPageReserved(virt_to_page(addr)); |
554 | init_page_count(virt_to_page(addr)); | 554 | init_page_count(virt_to_page(addr)); |
555 | memset((void *)(addr & ~(PAGE_SIZE-1)), | 555 | memset((void *)(addr & ~(PAGE_SIZE-1)), |