x86/fpu: Remove error return values from copy_kernel_to_*regs() functions
authorIngo Molnar <mingo@kernel.org>
Mon, 25 May 2015 09:27:46 +0000 (11:27 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 27 May 2015 12:11:30 +0000 (14:11 +0200)
commit9ccc27a5d297503e485373b69688d038a1d8e662
tree316780b039d30bdc3896bc5209a0755144456327
parent3e1bf47e5c81c2b895db4bea67f70c3ca8e5b984
x86/fpu: Remove error return values from copy_kernel_to_*regs() functions

None of the copy_kernel_to_*regs() FPU register copying functions are
supposed to fail, and all of them have debugging checks that enforce
this.

Remove their return values and simplify their call sites, which have
redundant error checks and error handling code paths.

Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Bobby Powers <bobbypowers@gmail.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/fpu/core.c