diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-09-08 16:29:32 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-09-14 22:10:03 +0300 |
commit | 052adee668284b67105375c0a524f16a423f1424 (patch) | |
tree | cf3805b1316cc5e219eac7a18e75003e48f264fe /arch/x86/include/asm/fpu/internal.h | |
parent | fcfb7163329ce832aafef31f26345ef5e8642a17 (diff) | |
download | linux-052adee668284b67105375c0a524f16a423f1424.tar.xz |
x86/fpu/signal: Change return type of copy_fpstate_to_sigframe() to boolean
None of the call sites cares about the actual return code. Change the
return type to boolean and return 'true' on success.
Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210908132525.736773588@linutronix.de
Diffstat (limited to 'arch/x86/include/asm/fpu/internal.h')
-rw-r--r-- | arch/x86/include/asm/fpu/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/fpu/internal.h b/arch/x86/include/asm/fpu/internal.h index c856ca481546..74aa53eeedf5 100644 --- a/arch/x86/include/asm/fpu/internal.h +++ b/arch/x86/include/asm/fpu/internal.h @@ -386,7 +386,7 @@ static inline void restore_fpregs_from_fpstate(union fpregs_state *fpstate) __restore_fpregs_from_fpstate(fpstate, xfeatures_mask_fpstate()); } -extern int copy_fpstate_to_sigframe(void __user *buf, void __user *fp, int size); +extern bool copy_fpstate_to_sigframe(void __user *buf, void __user *fp, int size); /* * FPU context switch related helper methods: |