提交 cfd866f6 编写于 作者: N Namhyung Kim 提交者: Linus Torvalds

ptrace: cleanup arch_ptrace() on microblaze

Remove checking @addr greater than 0 because @addr is now unsigned.
Signed-off-by: NNamhyung Kim <namhyung@gmail.com>
Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 bf60ef96
...@@ -100,7 +100,7 @@ long arch_ptrace(struct task_struct *child, long request, ...@@ -100,7 +100,7 @@ long arch_ptrace(struct task_struct *child, long request,
} else { } else {
rval = -EIO; 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); microblaze_reg_t *reg_addr = reg_save_addr(addr, child);
if (request == PTRACE_PEEKUSR) if (request == PTRACE_PEEKUSR)
val = *reg_addr; val = *reg_addr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册