浏览代码

[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.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Benjamin Herrenschmidt 18 年之前
父节点
当前提交
1b6610d6fc
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      arch/powerpc/kernel/ptrace.c

+ 0 - 4
arch/powerpc/kernel/ptrace.c

@@ -371,9 +371,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
 #endif
 #endif
 			break;
 			break;
 
 
-#ifdef CONFIG_PPC32
 		CHECK_FULL_REGS(child->thread.regs);
 		CHECK_FULL_REGS(child->thread.regs);
-#endif
 		if (index < PT_FPR0) {
 		if (index < PT_FPR0) {
 			tmp = ptrace_get_reg(child, (int) index);
 			tmp = ptrace_get_reg(child, (int) index);
 		} else {
 		} else {
@@ -410,9 +408,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
 #endif
 #endif
 			break;
 			break;
 
 
-#ifdef CONFIG_PPC32
 		CHECK_FULL_REGS(child->thread.regs);
 		CHECK_FULL_REGS(child->thread.regs);
-#endif
 		if (index == PT_ORIG_R3)
 		if (index == PT_ORIG_R3)
 			break;
 			break;
 		if (index < PT_FPR0) {
 		if (index < PT_FPR0) {