summaryrefslogtreecommitdiffstats
path: root/arch/tile
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2010-10-28 00:34:04 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-28 03:03:12 +0200
commit8c0acac3676103113a2e259291a07c073ac07879 (patch)
treedd54dbe6d01be0f1afb1f06fc0eff51518fc39a0 /arch/tile
parentptrace: cleanup arch_ptrace() on sparc (diff)
downloadlinux-8c0acac3676103113a2e259291a07c073ac07879.tar.xz
linux-8c0acac3676103113a2e259291a07c073ac07879.zip
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>
Diffstat (limited to 'arch/tile')
-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,
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