mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
ptrace: cleanup arch_ptrace() on score
Remove unnecessary castings. Signed-off-by: Namhyung Kim <namhyung@gmail.com> Cc: Chen Liqin <liqin.chen@sunplusct.com> Cc: Lennox Wu <lennox.wu@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
f68d204820
commit
41a2437eb1
@ -336,14 +336,14 @@ arch_ptrace(struct task_struct *child, long request,
|
||||
ret = copy_regset_to_user(child, &user_score_native_view,
|
||||
REGSET_GENERAL,
|
||||
0, sizeof(struct pt_regs),
|
||||
(void __user *)datap);
|
||||
datap);
|
||||
break;
|
||||
|
||||
case PTRACE_SETREGS:
|
||||
ret = copy_regset_from_user(child, &user_score_native_view,
|
||||
REGSET_GENERAL,
|
||||
0, sizeof(struct pt_regs),
|
||||
(const void __user *)datap);
|
||||
datap);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user