Skip to content

Commit

Permalink
warnings: fix arch/x86/kernel/early_printk.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Oct 12, 2008
1 parent 30cec97 commit 45e96f2
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions arch/x86/kernel/early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 45e96f2

Please sign in to comment.