diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-10-27 18:33:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-27 21:03:11 -0400 |
commit | cfd866f6bd1549fb25f826c469120a8eaee4fc1a (patch) | |
tree | 0a0b9c027fb1c0eaae9c5e7ab1644db723d62733 /arch/microblaze | |
parent | bf60ef96072ebbf768bae1f9ab421ceef5b80676 (diff) |
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')
-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 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, | |||
100 | } else { | 100 | } else { |
101 | rval = -EIO; | 101 | rval = -EIO; |
102 | } | 102 | } |
103 | } else if (addr >= 0 && addr < PT_SIZE && (addr & 0x3) == 0) { | 103 | } else if (addr < PT_SIZE && (addr & 0x3) == 0) { |
104 | microblaze_reg_t *reg_addr = reg_save_addr(addr, child); | 104 | microblaze_reg_t *reg_addr = reg_save_addr(addr, child); |
105 | if (request == PTRACE_PEEKUSR) | 105 | if (request == PTRACE_PEEKUSR) |
106 | val = *reg_addr; | 106 | val = *reg_addr; |