projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9384e2
)
ptrace: cleanup arch_ptrace() on tile
author
Namhyung Kim
<
[email protected]
>
Wed, 27 Oct 2010 22:34:04 +0000
(15:34 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 28 Oct 2010 01:03:12 +0000
(18:03 -0700)
Remove checking @addr less than 0 because @addr is now unsigned.
Signed-off-by: Namhyung Kim <
[email protected]
>
Acked-by: Chris Metcalf <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/tile/kernel/ptrace.c
patch
|
blob
|
history
diff --git
a/arch/tile/kernel/ptrace.c
b/arch/tile/kernel/ptrace.c
index f634729211d12f7a5b01437b176d83846ccb1034..9cd29884c09f2bfec1cddbacb67579bbd1e821c6 100644
(file)
--- 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