]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[POWERPC] Remove some useless ifdef's in ptrace
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 4 Jun 2007 05:15:45 +0000 (15:15 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 14 Jun 2007 12:29:57 +0000 (22:29 +1000)
CHECK_FULL_REGS() exist on both 32 and 64 bits, so there's no need
to make it conditional on CONFIG_PPC32.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/ptrace.c

index 875bfda90b21f44f9ee4d6cc4cc978824c800901..c9c330d35c17486b27d594041b2e29198c67670e 100644 (file)
@@ -371,9 +371,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
 #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 *child, long request, long addr, long data)
 #endif
                        break;
 
-#ifdef CONFIG_PPC32
                CHECK_FULL_REGS(child->thread.regs);
-#endif
                if (index == PT_ORIG_R3)
                        break;
                if (index < PT_FPR0) {