Răsfoiți Sursa

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>
Manish Katiyar 17 ani în urmă
părinte
comite
52aaa12fbe
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 2
      arch/x86/boot/a20.c

+ 1 - 2
arch/x86/boot/a20.c

@@ -115,8 +115,6 @@ static void enable_a20_fast(void)
 
 
 int enable_a20(void)
 int enable_a20(void)
 {
 {
-	int loops = A20_ENABLE_LOOPS;
-
 #if defined(CONFIG_X86_ELAN)
 #if defined(CONFIG_X86_ELAN)
 	/* Elan croaks if we try to touch the KBC */
 	/* Elan croaks if we try to touch the KBC */
 	enable_a20_fast();
 	enable_a20_fast();
@@ -128,6 +126,7 @@ int enable_a20(void)
 	enable_a20_kbc();
 	enable_a20_kbc();
 	return 0;
 	return 0;
 #else
 #else
+       int loops = A20_ENABLE_LOOPS;
 	while (loops--) {
 	while (loops--) {
 		/* First, check to see if A20 is already enabled
 		/* First, check to see if A20 is already enabled
 		   (legacy free, etc.) */
 		   (legacy free, etc.) */