Skip to content

Commit

Permalink
ptrace: remove a useless goto
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
congwang authored and Ingo Molnar committed Mar 10, 2009
1 parent 7a203f3 commit bbb76b5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bbb76b5

Please sign in to comment.