From: Namhyung Kim Date: Wed, 27 Oct 2010 22:34:04 +0000 (-0700) Subject: ptrace: cleanup arch_ptrace() on tile X-Git-Tag: upstream/snapshot3+hdmi~12627^2~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c0acac3676103113a2e259291a07c073ac07879;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ptrace: cleanup arch_ptrace() on tile Remove checking @addr less than 0 because @addr is now unsigned. Signed-off-by: Namhyung Kim Acked-by: Chris Metcalf Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/tile/kernel/ptrace.c b/arch/tile/kernel/ptrace.c index f634729..9cd2988 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