ptrace: cleanup arch_ptrace() on mn10300
authorNamhyung Kim <namhyung@gmail.com>
Wed, 27 Oct 2010 22:33:58 +0000 (15:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Oct 2010 01:03:11 +0000 (18:03 -0700)
commit261bb92054b9e0835c176a27967dd9eb326d010c
tree2ec294c3a859b8acfab929fb1d97793801ce6da8
parentfb671139a27abc44303ef938c3811d910724c493
ptrace: cleanup arch_ptrace() on mn10300

Use new 'datap' variable in order to remove unnecessary castings.
Also remove checking @addr less than 0 because @addr is now unsigned.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/mn10300/kernel/ptrace.c