diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-10-27 22:33:57 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 01:03:11 (GMT) |
commit | cfd866f6bd1549fb25f826c469120a8eaee4fc1a (patch) | |
tree | 0a0b9c027fb1c0eaae9c5e7ab1644db723d62733 /arch | |
parent | bf60ef96072ebbf768bae1f9ab421ceef5b80676 (diff) | |
download | linux-cfd866f6bd1549fb25f826c469120a8eaee4fc1a.tar.xz |
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')
-rw-r--r-- | arch/microblaze/kernel/ptrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/ptrace.c b/arch/microblaze/kernel/ptrace.c index 3544bc1..05ac8cc 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; |