summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/kernel
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2010-10-28 00:33:57 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-28 03:03:11 +0200
commitcfd866f6bd1549fb25f826c469120a8eaee4fc1a (patch)
tree0a0b9c027fb1c0eaae9c5e7ab1644db723d62733 /arch/microblaze/kernel
parentptrace: cleanup arch_ptrace() on m68knommu (diff)
downloadlinux-cfd866f6bd1549fb25f826c469120a8eaee4fc1a.tar.xz
linux-cfd866f6bd1549fb25f826c469120a8eaee4fc1a.zip
ptrace: cleanup arch_ptrace() on microblaze
Remove checking @addr greater than 0 because @addr is now unsigned. Signed-off-by: Namhyung Kim <namhyung@gmail.com> Cc: Michal Simek <monstr@monstr.eu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/microblaze/kernel')
-rw-r--r--arch/microblaze/kernel/ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/ptrace.c b/arch/microblaze/kernel/ptrace.c
index 3544bc157406..05ac8cc975d5 100644
--- a/arch/microblaze/kernel/ptrace.c
+++ b/arch/microblaze/kernel/ptrace.c
@@ -100,7 +100,7 @@ long arch_ptrace(struct task_struct *child, long request,
} else {
rval = -EIO;
}
- } else if (addr >= 0 && addr < PT_SIZE && (addr & 0x3) == 0) {
+ } else if (addr < PT_SIZE && (addr & 0x3) == 0) {
microblaze_reg_t *reg_addr = reg_save_addr(addr, child);
if (request == PTRACE_PEEKUSR)
val = *reg_addr;