Commit bbb76b552a9cef86777181c8577acc907b122b41

Authored by Américo Wang
Committed by Ingo Molnar
1 parent 7a203f3b08

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>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

... ... @@ -612,8 +612,6 @@
612 612 goto out_put_task_struct;
613 613  
614 614 ret = arch_ptrace(child, request, addr, data);
615   - if (ret < 0)
616   - goto out_put_task_struct;
617 615  
618 616 out_put_task_struct:
619 617 put_task_struct(child);