ptrace: cleanup arch_ptrace() on x86
authorNamhyung Kim <namhyung@gmail.com>
Wed, 27 Oct 2010 22:33:48 +0000 (15:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Oct 2010 01:03:10 +0000 (18:03 -0700)
commiteb5a3699311ba8ed22b7b38ceb3bb1411e438e2a
tree1dbe526da49f057cb30378991fb85b1dbaf0edc4
parent9b05a69e0534ec70bc94921936ffa05b330507cb
ptrace: cleanup arch_ptrace() on x86

Remove checking @addr less than 0 because @addr is now unsigned and
use new udescp variable in order to remove unnecessary castings.

[akpm@linux-foundation.org: fix unused variable 'udescp']
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/ptrace.c