* [Patch] ptrace: remove a useless goto
@ 2009-03-10 9:34 Américo Wang
0 siblings, 0 replies; only message in thread
From: Américo Wang @ 2009-03-10 9:34 UTC (permalink / raw)
To: LKML; +Cc: Andrew Morton, Roland McGrath
Obviously, this goto is useless. Remove it.
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Roland McGrath <roland@redhat.com>
---
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index c9cf48b..1379559 100644
--- 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);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-10 9:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-10 9:34 [Patch] ptrace: remove a useless goto Américo Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox