]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit56b50f86bc43a35b862b095b810495cc17d9e4a4
tree2e0e4108fa3e604b98c447a1725bd6746be528ee
parent62efc7ff77e64addb043bbb85eb6c748fba913f2
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