Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45e96f26 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

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: default avatarIngo Molnar <mingo@elte.hu>
parent 30cec979
Loading
Loading
Loading
Loading
+0 −18
Original line number Original line Diff line number Diff line
@@ -989,22 +989,4 @@ static int __init setup_early_printk(char *buf)
	return 0;
	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);
early_param("earlyprintk", setup_early_printk);