]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b59b24e26d4d907d2f492011607463c4240284c
tree316780b039d30bdc3896bc5209a0755144456327
parentc4daa5e9f141161e036b37b5e74ab413209fe2c6
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