mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
ptrace: cleanup arch_ptrace() on tile
Remove checking @addr less than 0 because @addr is now unsigned. Signed-off-by: Namhyung Kim <namhyung@gmail.com> Acked-by: Chris Metcalf <cmetcalf@tilera.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a9384e23ab
commit
8c0acac367
@ -58,7 +58,7 @@ long arch_ptrace(struct task_struct *child, long request,
|
||||
switch (request) {
|
||||
|
||||
case PTRACE_PEEKUSR: /* Read register from pt_regs. */
|
||||
if (addr < 0 || addr >= PTREGS_SIZE)
|
||||
if (addr >= PTREGS_SIZE)
|
||||
break;
|
||||
childreg = (char *)task_pt_regs(child) + addr;
|
||||
#ifdef CONFIG_COMPAT
|
||||
@ -77,7 +77,7 @@ long arch_ptrace(struct task_struct *child, long request,
|
||||
break;
|
||||
|
||||
case PTRACE_POKEUSR: /* Write register in pt_regs. */
|
||||
if (addr < 0 || addr >= PTREGS_SIZE)
|
||||
if (addr >= PTREGS_SIZE)
|
||||
break;
|
||||
childreg = (char *)task_pt_regs(child) + addr;
|
||||
#ifdef CONFIG_COMPAT
|
||||
|
Loading…
Reference in New Issue
Block a user