]> err.no Git - linux-2.6/commitdiff
x86: fix unused variable 'loops' warning in arch/x86/boot/a20.c
authorManish Katiyar <mkatiyar@gmail.com>
Thu, 5 Jun 2008 13:44:15 +0000 (19:14 +0530)
committerIngo Molnar <mingo@elte.hu>
Thu, 12 Jun 2008 19:27:05 +0000 (21:27 +0200)
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>
arch/x86/boot/a20.c

index 90943f83e84d69ba1172ab745febe31a231f58fc..e01aafd03bdec42086147d4cb00e18a342a237eb 100644 (file)
@@ -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.) */