Skip to content

Commit

Permalink
x86: fix unused variable 'loops' warning in arch/x86/boot/a20.c
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mkatiyar authored and Ingo Molnar committed Jun 12, 2008
1 parent 0b6a39f commit 52aaa12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/boot/a20.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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.) */
Expand Down

0 comments on commit 52aaa12

Please sign in to comment.