aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-08-27 04:37:14 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-12 09:19:36 -0400
commit45e96f26f257bd873017c6244a6cafd27f6f5439 (patch)
tree014db6b91ea5c51c23fb6e28faa58f7ca45c4755
parent30cec97967beb5aa08e893e8ff69623d5fecd9b7 (diff)
warnings: fix arch/x86/kernel/early_printk.c
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>
-rw-r--r--arch/x86/kernel/early_printk.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/x86/kernel/early_printk.c b/arch/x86/kernel/early_printk.c
index 02fc5b40c14b..34ad997d3834 100644
--- a/arch/x86/kernel/early_printk.c
+++ b/arch/x86/kernel/early_printk.c
@@ -989,22 +989,4 @@ static int __init setup_early_printk(char *buf)
989 return 0; 989 return 0;
990} 990}
991 991
992static void __init enable_debug_console(char *buf)
993{
994#ifdef DBGP_DEBUG
995 struct console *old_early_console = NULL;
996
997 if (early_console_initialized && early_console) {
998 old_early_console = early_console;
999 unregister_console(early_console);
1000 early_console_initialized = 0;
1001 }
1002
1003 setup_early_printk(buf);
1004
1005 if (early_console == old_early_console && old_early_console)
1006 register_console(old_early_console);
1007#endif
1008}
1009
1010early_param("earlyprintk", setup_early_printk); 992early_param("earlyprintk", setup_early_printk);