Commit cfd866f6 authored by Namhyung Kim's avatar Namhyung Kim Committed by Linus Torvalds

ptrace: cleanup arch_ptrace() on microblaze

Remove checking @addr greater than 0 because @addr is now unsigned.
Signed-off-by: default avatarNamhyung Kim <namhyung@gmail.com>
Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment