x86: Unspaghettize do_general_protection()
authorFrederic Weisbecker <fweisbec@gmail.com>
Mon, 24 Sep 2012 19:05:52 +0000 (21:05 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Wed, 26 Sep 2012 13:47:06 +0000 (15:47 +0200)
commitef3f628872c838933a279d0d7e63e707783c9710
tree2274330a797077630527238e10161c1678e6e5a2
parentbf5a3c13b939813d28ce26c01425054c740d6731
x86: Unspaghettize do_general_protection()

There is some unnatural label based layout in this function.
Convert the unnecessary goto to readable conditional blocks.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/traps.c