From: Manish Katiyar Date: Thu, 5 Jun 2008 13:44:15 +0000 (+0530) Subject: x86: fix unused variable 'loops' warning in arch/x86/boot/a20.c X-Git-Tag: v2.6.26-rc6~1^2~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52aaa12fbe786c90396f1b11ec39c924ccdd8fd5;p=linux-2.6 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 Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/boot/a20.c b/arch/x86/boot/a20.c index 90943f83e8..e01aafd03b 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.) */