提交 41a2437e 编写于 作者: N Namhyung Kim 提交者: Linus Torvalds

ptrace: cleanup arch_ptrace() on score

Remove unnecessary castings.
Signed-off-by: NNamhyung Kim <namhyung@gmail.com>
Cc: Chen Liqin <liqin.chen@sunplusct.com>
Cc: Lennox Wu <lennox.wu@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 f68d2048
...@@ -336,14 +336,14 @@ arch_ptrace(struct task_struct *child, long request, ...@@ -336,14 +336,14 @@ arch_ptrace(struct task_struct *child, long request,
ret = copy_regset_to_user(child, &user_score_native_view, ret = copy_regset_to_user(child, &user_score_native_view,
REGSET_GENERAL, REGSET_GENERAL,
0, sizeof(struct pt_regs), 0, sizeof(struct pt_regs),
(void __user *)datap); datap);
break; break;
case PTRACE_SETREGS: case PTRACE_SETREGS:
ret = copy_regset_from_user(child, &user_score_native_view, ret = copy_regset_from_user(child, &user_score_native_view,
REGSET_GENERAL, REGSET_GENERAL,
0, sizeof(struct pt_regs), 0, sizeof(struct pt_regs),
(const void __user *)datap); datap);
break; break;
default: default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册