[Patch] ptrace: remove a useless goto

From: AmÃrico Wang
Date: Tue Mar 10 2009 - 05:34:30 EST



Obviously, this goto is useless. Remove it.

Signed-off-by: WANG Cong <xiyou.wangcong@xxxxxxxxx>
Cc: Roland McGrath <roland@xxxxxxxxxx>

---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/