summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-04-03 17:35:06 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-03 17:35:06 -0700
commit09f38dc19deba9eae1d668dde8bdd2aaed3479ed (patch)
tree5eaf5da4572374948ad62ab6dd4403726938c32a
parent30a39e0e97f948e3ac8eeacd54d09f4bbfbab64b (diff)
parentbbb76b552a9cef86777181c8577acc907b122b41 (diff)
downloadlinux-3.10-09f38dc19deba9eae1d668dde8bdd2aaed3479ed.tar.gz
linux-3.10-09f38dc19deba9eae1d668dde8bdd2aaed3479ed.tar.bz2
linux-3.10-09f38dc19deba9eae1d668dde8bdd2aaed3479ed.zip
Merge branch 'core-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: ptrace: remove a useless goto
-rw-r--r--kernel/ptrace.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index 5105f5a6a2c..aaad0ec3419 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -687,8 +687,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);