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

Remove unnecessary castings and get rid of dummy pointer in favor of
offsetof() macro in ptrace_32.c. Also use temporary variables and
break long lines in order to improve readability.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/sh/kernel/ptrace_32.c
arch/sh/kernel/ptrace_64.c