[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20090310093447.GC3179@hack>
Date: Tue, 10 Mar 2009 17:34:47 +0800
From: Américo Wang <xiyou.wangcong@...il.com>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Andrew Morton <akpm@...l.org>, Roland McGrath <roland@...hat.com>
Subject: [Patch] ptrace: remove a useless goto
Obviously, this goto is useless. Remove it.
Signed-off-by: WANG Cong <xiyou.wangcong@...il.com>
Cc: Roland McGrath <roland@...hat.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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists