x86/cpu: Do the feature test first in enable_sep_cpu()
authorBorislav Petkov <bp@suse.de>
Wed, 16 Mar 2016 12:19:29 +0000 (13:19 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 29 Mar 2016 10:57:12 +0000 (12:57 +0200)
commitb3edfda4382ffaef5e5c1cffb25a33b3b9ef4546
tree1a3b034de56b2aea67611af1423e74ca2c51634d
parent1993b176a8224e371e0732ffada7ab9eb3b0912b
x86/cpu: Do the feature test first in enable_sep_cpu()

... before assigning local vars. Kill out label too and simplify.

No functionality change.

Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Andy Lutomirski <luto@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1458130769-24963-1-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/common.c