aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/ptrace.c
diff options
context:
space:
mode:
authorAmérico Wang <xiyou.wangcong@gmail.com>2009-03-10 05:34:47 -0400
committerIngo Molnar <mingo@elte.hu>2009-03-10 08:39:29 -0400
commitbbb76b552a9cef86777181c8577acc907b122b41 (patch)
tree8e306a63d56781776cf800faa3fb312a3bf7367d /kernel/ptrace.c
parent7a203f3b089be4410fe065dd9927027eade94557 (diff)
ptrace: remove a useless goto
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>
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r--kernel/ptrace.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index c9cf48b21f05..137955913e7e 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -612,8 +612,6 @@ SYSCALL_DEFINE4(ptrace, long, request, long, pid, long, addr, long, data)
612 goto out_put_task_struct; 612 goto out_put_task_struct;
613 613
614 ret = arch_ptrace(child, request, addr, data); 614 ret = arch_ptrace(child, request, addr, data);
615 if (ret < 0)
616 goto out_put_task_struct;
617 615
618 out_put_task_struct: 616 out_put_task_struct:
619 put_task_struct(child); 617 put_task_struct(child);