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

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>
Acked-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/m68knommu/kernel/ptrace.c