summaryrefslogtreecommitdiff
path: root/arch/x86/boot/a20.c
diff options
context:
space:
mode:
authorManish Katiyar <mkatiyar@gmail.com>2008-06-05 17:44:15 +0400
committerIngo Molnar <mingo@elte.hu>2008-06-12 23:27:05 +0400
commit52aaa12fbe786c90396f1b11ec39c924ccdd8fd5 (patch)
treed8c0506e414c23ea778adedae51769740e157f36 /arch/x86/boot/a20.c
parent0b6a39f7ebcb1c82587ce35b401c513eed41ac5c (diff)
downloadlinux-52aaa12fbe786c90396f1b11ec39c924ccdd8fd5.tar.xz
x86: fix unused variable 'loops' warning in arch/x86/boot/a20.c
Following patch fixes the below warning message : arch/x86/boot/a20.c:118: warning: unused variable 'loops' Signed-off-by : Manish Katiyar <mkatiyar@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/boot/a20.c')
-rw-r--r--arch/x86/boot/a20.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/boot/a20.c b/arch/x86/boot/a20.c
index 90943f83e84d..e01aafd03bde 100644
--- a/arch/x86/boot/a20.c
+++ b/arch/x86/boot/a20.c
@@ -115,8 +115,6 @@ static void enable_a20_fast(void)
int enable_a20(void)
{
- int loops = A20_ENABLE_LOOPS;
-
#if defined(CONFIG_X86_ELAN)
/* Elan croaks if we try to touch the KBC */
enable_a20_fast();
@@ -128,6 +126,7 @@ int enable_a20(void)
enable_a20_kbc();
return 0;
#else
+ int loops = A20_ENABLE_LOOPS;
while (loops--) {
/* First, check to see if A20 is already enabled
(legacy free, etc.) */