ptrace: cleanup arch_ptrace() on um
authorNamhyung Kim <namhyung@gmail.com>
Wed, 27 Oct 2010 22:34:04 +0000 (15:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Oct 2010 01:03:12 +0000 (18:03 -0700)
commit0a3d763f1a68c97daae57e40c6d698986d1b38f4
treeb88189bb89beadc12e414c27be08c26ad837dbbd
parent8c0acac3676103113a2e259291a07c073ac07879
ptrace: cleanup arch_ptrace() on um

Remove unnecessary castings using void pointer and fix copy_to_user()
return value. Also add missing __user markup on the argument of
arch_ptrctl().

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/kernel/ptrace.c
arch/um/sys-x86_64/ptrace.c