aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2010-10-27 18:34:04 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-27 21:03:12 -0400
commit8c0acac3676103113a2e259291a07c073ac07879 (patch)
treedd54dbe6d01be0f1afb1f06fc0eff51518fc39a0
parenta9384e23ab19eba0dedb861ebcba805b98a3b7a5 (diff)
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>
-rw-r--r--arch/tile/kernel/ptrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/tile/kernel/ptrace.c b/arch/tile/kernel/ptrace.c
index f634729211d1..9cd29884c09f 100644
--- a/arch/tile/kernel/ptrace.c
+++ b/arch/tile/kernel/ptrace.c
@@ -58,7 +58,7 @@ long arch_ptrace(struct task_struct *child, long request,
58 switch (request) { 58 switch (request) {
59 59
60 case PTRACE_PEEKUSR: /* Read register from pt_regs. */ 60 case PTRACE_PEEKUSR: /* Read register from pt_regs. */
61 if (addr < 0 || addr >= PTREGS_SIZE) 61 if (addr >= PTREGS_SIZE)
62 break; 62 break;
63 childreg = (char *)task_pt_regs(child) + addr; 63 childreg = (char *)task_pt_regs(child) + addr;
64#ifdef CONFIG_COMPAT 64#ifdef CONFIG_COMPAT
@@ -77,7 +77,7 @@ long arch_ptrace(struct task_struct *child, long request,
77 break; 77 break;
78 78
79 case PTRACE_POKEUSR: /* Write register in pt_regs. */ 79 case PTRACE_POKEUSR: /* Write register in pt_regs. */
80 if (addr < 0 || addr >= PTREGS_SIZE) 80 if (addr >= PTREGS_SIZE)
81 break; 81 break;
82 childreg = (char *)task_pt_regs(child) + addr; 82 childreg = (char *)task_pt_regs(child) + addr;
83#ifdef CONFIG_COMPAT 83#ifdef CONFIG_COMPAT