ptrace: fix an unreachable statement
Subsystems (2)
PATCH 1/1 ptrace: fix an unreachable statement
commit c2724775ce57c98b8af9694857b941dc61056516 put a statement after return, which makes that statement unreachable.
Move that statement before return.
Cc Markus Metzger <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Roland McGrath <[email protected]>
Signed-off-by WANG Cong <[email protected]>
---
arch/x86/kernel/ptrace.c +1 -2
@@ -690,9 +690,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) &&