Skip to content

Commit 52aaa12

Browse files
mkatiyarIngo Molnar
authored andcommitted
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent 0b6a39f commit 52aaa12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/x86/boot/a20.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ static void enable_a20_fast(void)
115115

116116
int enable_a20(void)
117117
{
118-
int loops = A20_ENABLE_LOOPS;
119-
120118
#if defined(CONFIG_X86_ELAN)
121119
/* Elan croaks if we try to touch the KBC */
122120
enable_a20_fast();
@@ -128,6 +126,7 @@ int enable_a20(void)
128126
enable_a20_kbc();
129127
return 0;
130128
#else
129+
int loops = A20_ENABLE_LOOPS;
131130
while (loops--) {
132131
/* First, check to see if A20 is already enabled
133132
(legacy free, etc.) */

0 commit comments

Comments
 (0)