Skip to content

Commit

Permalink
ptrace: cleanup arch_ptrace() on score
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Namhyung Kim authored and Linus Torvalds committed Oct 28, 2010
1 parent f68d204 commit 41a2437
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/score/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 41a2437

Please sign in to comment.