diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-10-27 15:33:57 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-27 18:03:11 -0700 |
commit | cfd866f6bd1549fb25f826c469120a8eaee4fc1a (patch) | |
tree | 0a0b9c027fb1c0eaae9c5e7ab1644db723d62733 /arch/microblaze/kernel | |
parent | bf60ef96072ebbf768bae1f9ab421ceef5b80676 (diff) | |
download | kernel_goldelico_gta04-cfd866f6bd1549fb25f826c469120a8eaee4fc1a.zip kernel_goldelico_gta04-cfd866f6bd1549fb25f826c469120a8eaee4fc1a.tar.gz kernel_goldelico_gta04-cfd866f6bd1549fb25f826c469120a8eaee4fc1a.tar.bz2 |
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.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; |