[PATCH] : Fix unused variable 'loops' warning in arch/x86/boot/a20.c

Previous thread: [PATCH 2.6.26rc5] xfrm: SHA-256/384/512 HMAC support for IPsec by Martin Willi on Thursday, June 5, 2008 - 9:06 am. (5 messages)

Next thread: ARM on qemu: running kernel 2.6.20 or newer? by Thomas Bleher on Thursday, June 5, 2008 - 9:53 am. (3 messages)
To: LKML <linux-kernel@...>, <kernel-janitors@...>
Date: Thursday, June 5, 2008 - 9:44 am

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>

diff --git a/arch/x86/boot/a20.c b/arch/x86/boot/a20.c
index 90943f8..d9f13bf 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.) */

================================================

--
Thanks & Regards,
********************************************
Manish Katiyar ( http://mkatiyar.googlepages.com )
3rd Floor, Fair Winds Block
EGL Software Park
Off Intermediate Ring Road
Bangalore 560071, India
***********************************************
--

To: Manish Katiyar <mkatiyar@...>
Cc: LKML <linux-kernel@...>, <kernel-janitors@...>, the arch/x86 maintainers <x86@...>
Date: Tuesday, June 10, 2008 - 6:18 am

applied to tip/x86/urgent, thanks Manish.

Ingo
--

Previous thread: [PATCH 2.6.26rc5] xfrm: SHA-256/384/512 HMAC support for IPsec by Martin Willi on Thursday, June 5, 2008 - 9:06 am. (5 messages)

Next thread: ARM on qemu: running kernel 2.6.20 or newer? by Thomas Bleher on Thursday, June 5, 2008 - 9:53 am. (3 messages)