All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch] ptrace: fix an unreachable statement
@ 2009-03-13  7:56 Américo Wang
  0 siblings, 0 replies; only message in thread
From: Américo Wang @ 2009-03-13  7:56 UTC (permalink / raw)
  To: LKML; +Cc: Roland McGrath, Markus Metzger, Ingo Molnar


commit c2724775ce57c98b8af9694857b941dc61056516 put a statement after
return, which makes that statement unreachable.

Move that statement before return.

Cc: Markus Metzger <markus.t.metzger@intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>

---
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c
index 06ca07f..f7d38d6 100644
--- a/arch/x86/kernel/ptrace.c
+++ b/arch/x86/kernel/ptrace.c
@@ -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) &&


 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-13  7:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-13  7:56 [Patch] ptrace: fix an unreachable statement Américo Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.