Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Namhyung Kim and committed by
Linus Torvalds
41a2437e f68d2048

+2 -2
+2 -2
arch/score/kernel/ptrace.c
··· 336 336 ret = copy_regset_to_user(child, &user_score_native_view, 337 337 REGSET_GENERAL, 338 338 0, sizeof(struct pt_regs), 339 - (void __user *)datap); 339 + datap); 340 340 break; 341 341 342 342 case PTRACE_SETREGS: 343 343 ret = copy_regset_from_user(child, &user_score_native_view, 344 344 REGSET_GENERAL, 345 345 0, sizeof(struct pt_regs), 346 - (const void __user *)datap); 346 + datap); 347 347 break; 348 348 349 349 default: