]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
warnings: fix arch/x86/kernel/early_printk.c
authorIngo Molnar <mingo@elte.hu>
Wed, 27 Aug 2008 08:37:14 +0000 (10:37 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 12 Oct 2008 13:19:36 +0000 (15:19 +0200)
fix warning:

  arch/x86/kernel/early_printk.c:993: warning: ‘enable_debug_console’ defined but not used

Eliminate dead code.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/early_printk.c

index 02fc5b40c14b7f9bb6d9a0cef735d0535780df49..34ad997d3834dc773b71ae4f27e18828447d2853 100644 (file)
@@ -989,22 +989,4 @@ static int __init setup_early_printk(char *buf)
        return 0;
 }
 
-static void __init enable_debug_console(char *buf)
-{
-#ifdef DBGP_DEBUG
-       struct console *old_early_console = NULL;
-
-       if (early_console_initialized && early_console) {
-               old_early_console = early_console;
-               unregister_console(early_console);
-               early_console_initialized = 0;
-       }
-
-       setup_early_printk(buf);
-
-       if (early_console == old_early_console && old_early_console)
-               register_console(old_early_console);
-#endif
-}
-
 early_param("earlyprintk", setup_early_printk);