x86/fpu: Simplify kernel_fpu_begin()
authorChristoph Hellwig <hch@lst.de>
Tue, 4 Jun 2019 07:15:23 +0000 (09:15 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 17 Jun 2019 10:19:49 +0000 (12:19 +0200)
commit6d79d86f9600510e08ad45c72b9d7e664e439e62
tree43bbf0c7e57004f008db9598983fbcac6be76df9
parentb78ea19ac22fd7b32d7828066cce3d8f2db5226a
x86/fpu: Simplify kernel_fpu_begin()

Merge two helpers into the main function, remove a pointless local
variable and flatten a conditional.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Nicolai Stange <nstange@suse.de>
Cc: Rik van Riel <riel@surriel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/20190604071524.12835-3-hch@lst.de
arch/x86/kernel/fpu/core.c