aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmérico Wang <[email protected]>2009-03-13 15:56:58 +0800
committerIngo Molnar <[email protected]>2009-03-13 10:27:57 +0100
commit5a8ac9d28dae5330c70562c7d7785f5104059c17 (patch)
tree08c21d304707df6426d88fdb1cdc0076be8bc481
parenta98fe7f3425c6b4e90de16f8da63b0429a8fed08 (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 <[email protected]> Cc: Roland McGrath <[email protected]> Cc: Markus Metzger <[email protected]> LKML-Reference: <20090313075622.GB8933@hack> Cc: <[email protected]> # .29 only Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--arch/x86/kernel/ptrace.c3
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,
if (!cfg.signal)
return -EINVAL;
- return -EOPNOTSUPP;
-
child->thread.bts_ovfl_signal = cfg.signal;
+ return -EOPNOTSUPP;
}
if ((cfg.flags & PTRACE_BTS_O_ALLOC) &&