Messages in this thread Patch in this message | | | From | Sergey Shtylyov <> | Subject | [PATCH 02/13] arm: ptrace: user_regset_copyin_ignore() always returns 0 | Date | Sat, 15 Oct 2022 00:22:24 +0300 |
| |
user_regset_copyin_ignore() always returns 0, so checking its result seems pointless -- don't do this anymore...
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru> --- arch/arm/kernel/ptrace.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c index bfe88c6e60d5..2d8e2516906b 100644 --- a/arch/arm/kernel/ptrace.c +++ b/arch/arm/kernel/ptrace.c @@ -651,11 +651,9 @@ static int vfp_set(struct task_struct *target, 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, -- 2.26.3
| |