[PATCH] arm: ptrace: user_regset_copyin_ignore() always returns 0
Sergey Shtylyov
s.shtylyov at omp.ru
Wed Sep 21 14:07:52 PDT 2022
user_regset_copyin_ignore() always returns 0, so checking its result seems
pointless -- don't do this...
Signed-off-by: Sergey Shtylyov <s.shtylyov at omp.ru>
---
This patch is against the 'for-next' branch of RMK's 'linux-arm.git' repo...
arch/arm/kernel/ptrace.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
Index: linux-arm/arch/arm/kernel/ptrace.c
===================================================================
--- linux-arm.orig/arch/arm/kernel/ptrace.c
+++ linux-arm/arch/arm/kernel/ptrace.c
@@ -651,11 +651,9 @@ static int vfp_set(struct task_struct *t
if (ret)
return ret;
- ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf,
- user_fpregs_offset + sizeof(new_vfp.fpregs),
- user_fpscr_offset);
- if (ret)
- return ret;
+ user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf,
+ user_fpregs_offset + sizeof(new_vfp.fpregs),
+ user_fpscr_offset);
ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
&new_vfp.fpscr,
More information about the linux-arm-kernel
mailing list