mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00:00
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>
This commit is contained in:
parent
bf60ef9607
commit
cfd866f6bd
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user