Message ID | 75b5a103-2548-7eef-dd2a-5f08057f3693@omp.ru (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | arm: ptrace: user_regset_copyin_ignore() always returns 0 | expand |
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,
user_regset_copyin_ignore() always returns 0, so checking its result seems pointless -- don't do this... Signed-off-by: Sergey Shtylyov <s.shtylyov@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(-)