mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] : Fix unused variable 'loops' warning in arch/x86/boot/a20.c
@ 2008-06-05 13:44 Manish Katiyar
  2008-06-10 10:18 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Manish Katiyar @ 2008-06-05 13:44 UTC (permalink / raw)
  To: LKML, kernel-janitors

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
***********************************************

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-10 10:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-05 13:44 [PATCH] : Fix unused variable 'loops' warning in arch/x86/boot/a20.c Manish Katiyar
2008-06-10 10:18 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®