diff options
author | Américo Wang <xiyou.wangcong@gmail.com> | 2009-03-13 03:56:58 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-13 05:27:57 -0400 |
commit | 5a8ac9d28dae5330c70562c7d7785f5104059c17 (patch) | |
tree | 08c21d304707df6426d88fdb1cdc0076be8bc481 /arch/x86/kernel/ptrace.c | |
parent | a98fe7f3425c6b4e90de16f8da63b0429a8fed08 (diff) |
x86: ptrace, bts: fix an unreachable statement
Commit c2724775ce57c98b8af9694857b941dc61056516 put a statement
after return, which makes that statement unreachable.
Move that statement before return.
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: Markus Metzger <markus.t.metzger@intel.com>
LKML-Reference: <20090313075622.GB8933@hack>
Cc: <stable@kernel.org> # .29 only
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/ptrace.c')
-rw-r--r-- | arch/x86/kernel/ptrace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c index 3d9672e59c16..19378715f415 100644 --- a/arch/x86/kernel/ptrace.c +++ b/arch/x86/kernel/ptrace.c | |||
@@ -685,9 +685,8 @@ static int ptrace_bts_config(struct task_struct *child, | |||
685 | if (!cfg.signal) | 685 | if (!cfg.signal) |
686 | return -EINVAL; | 686 | return -EINVAL; |
687 | 687 | ||
688 | return -EOPNOTSUPP; | ||
689 | |||
690 | child->thread.bts_ovfl_signal = cfg.signal; | 688 | child->thread.bts_ovfl_signal = cfg.signal; |
689 | return -EOPNOTSUPP; | ||
691 | } | 690 | } |
692 | 691 | ||
693 | if ((cfg.flags & PTRACE_BTS_O_ALLOC) && | 692 | if ((cfg.flags & PTRACE_BTS_O_ALLOC) && |