Skip to content

Commit

Permalink
x86: ptrace, bts: fix an unreachable statement
Browse files Browse the repository at this point in the history
Commit c272477 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>
  • Loading branch information
Américo Wang authored and Ingo Molnar committed Mar 13, 2009
1 parent a98fe7f commit 5a8ac9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) &&
Expand Down

0 comments on commit 5a8ac9d

Please sign in to comment.