projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a203f3
)
ptrace: remove a useless goto
author
Américo Wang
<xiyou.wangcong@gmail.com>
Tue, 10 Mar 2009 09:34:47 +0000
(17:34 +0800)
committer
Ingo Molnar
<mingo@elte.hu>
Tue, 10 Mar 2009 12:39:29 +0000
(13:39 +0100)
Impact: cleanup
Obviously, this goto is useless. Remove it.
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Andrew Morton <akpm@osdl.org>
Cc: Roland McGrath <roland@redhat.com>
LKML-Reference: <
20090310093447
.GC3179@hack>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/ptrace.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/ptrace.c
b/kernel/ptrace.c
index c9cf48b21f052a620b34151cc9de6c4b48f4ad66..137955913e7e74bfea149c480e74fb7fd6ca63d5 100644
(file)
--- a/
kernel/ptrace.c
+++ b/
kernel/ptrace.c
@@
-612,8
+612,6
@@
SYSCALL_DEFINE4(ptrace, long, request, long, pid, long, addr, long, data)
goto out_put_task_struct;
ret = arch_ptrace(child, request, addr, data);
- if (ret < 0)
- goto out_put_task_struct;
out_put_task_struct:
put_task_struct(child);