Skip to contentSkip to conversation

powerpc: remove some useless ifdef's in ptrace

PATCH In review Benjamin Herrenschmidt 1 participant 1 message May 30, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/6 powerpc: remove some useless ifdef's in ptrace

CHECK_FULL_REGS() exist on both 32 and 64 bits, so there's no need to make it conditional on CONFIG_PPC32

---

 arch/powerpc/kernel/ptrace.c |    4 ----
 1 file changed, 4 deletions(-)
arch/powerpc/kernel/ptrace.c +0 -4
Index: linux-cell/arch/powerpc/kernel/ptrace.c
===================================================================
@@ -371,9 +371,7 @@ long arch_ptrace(struct task_struct *chi
 #endif
 			break;
 
-#ifdef CONFIG_PPC32
 		CHECK_FULL_REGS(child->thread.regs);
-#endif
 		if (index < PT_FPR0) {
 			tmp = ptrace_get_reg(child, (int) index);
 		} else {
@@ -410,9 +408,7 @@ long arch_ptrace(struct task_struct *chi
 #endif
 			break;
 
-#ifdef CONFIG_PPC32
 		CHECK_FULL_REGS(child->thread.regs);
-#endif
 		if (index == PT_ORIG_R3)
 			break;
 		if (index < PT_FPR0) {