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

Use new 'regno', 'datap' variables in order to remove duplicated
expressions and unnecessary castings. Alse remove checking @addr
less than 0 because addr is now unsigned.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/h8300/kernel/ptrace.c