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:
bf60ef9
)
ptrace: cleanup arch_ptrace() on microblaze
author
Namhyung Kim
<
[email protected]
>
Wed, 27 Oct 2010 22:33:57 +0000
(15:33 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 28 Oct 2010 01:03:11 +0000
(18:03 -0700)
Remove checking @addr greater than 0 because @addr is now unsigned.
Signed-off-by: Namhyung Kim <
[email protected]
>
Cc: Michal Simek <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/microblaze/kernel/ptrace.c
patch
|
blob
|
history
diff --git
a/arch/microblaze/kernel/ptrace.c
b/arch/microblaze/kernel/ptrace.c
index 3544bc157406c7deefe9504d968f818b559381d7..05ac8cc975d53192e80557b15b9ea0c3013a02f8 100644
(file)
--- a/
arch/microblaze/kernel/ptrace.c
+++ b/
arch/microblaze/kernel/ptrace.c
@@
-100,7
+100,7
@@
long arch_ptrace(struct task_struct *child, long request,
} else {
rval = -EIO;
}
- } else if (addr
>= 0 && addr
< PT_SIZE && (addr & 0x3) == 0) {
+ } else if (addr < PT_SIZE && (addr & 0x3) == 0) {
microblaze_reg_t *reg_addr = reg_save_addr(addr, child);
if (request == PTRACE_PEEKUSR)
val = *reg_addr;