Skip to content

Commit

Permalink
[POWERPC] Remove some useless ifdef's in ptrace
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Jun 14, 2007
1 parent 865418d commit 1b6610d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/powerpc/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 1b6610d

Please sign in to comment.