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 <[email protected]>
Cc: Chen Liqin <[email protected]>
Cc: Lennox Wu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
namhyung authored and 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.