]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: remove redundant #ifdef CONFIG_ALTIVEC
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 6 Oct 2004 01:13:06 +0000 (18:13 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 6 Oct 2004 01:13:06 +0000 (18:13 -0700)
arch/ppc64/kernel/process.c has an #ifdef CONFIG_ALTIVEC within an #ifdef
CONFIG_ALTIVEC.  This patch removes the inner one.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/process.c

index 6eebb805dda5ef31a17350b419736fbfa61218cd..8211337074cb5200755c82868a35ff81a876507a 100644 (file)
@@ -147,7 +147,6 @@ EXPORT_SYMBOL(enable_kernel_altivec);
  */
 void flush_altivec_to_thread(struct task_struct *tsk)
 {
-#ifdef CONFIG_ALTIVEC
        if (tsk->thread.regs) {
                preempt_disable();
                if (tsk->thread.regs->msr & MSR_VEC) {
@@ -158,7 +157,6 @@ void flush_altivec_to_thread(struct task_struct *tsk)
                }
                preempt_enable();
        }
-#endif
 }
 
 int dump_task_altivec(struct pt_regs *regs, elf_vrregset_t *vrregs)