public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [TRIVIAL, PPC64]  Remove redundant #ifdef CONFIG_ALTIVEC
@ 2004-10-05  5:26 David Gibson
  0 siblings, 0 replies; only message in thread
From: David Gibson @ 2004-10-05  5:26 UTC (permalink / raw)
  To: Andrew Morton
  Cc: trivial, Paul Mackerras, Benjamin Herrenschmidt, linuxppc64-dev,
	linux-kernel

Andrew, please apply:

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>

Index: working-2.6/arch/ppc64/kernel/process.c
===================================================================
--- working-2.6.orig/arch/ppc64/kernel/process.c	2004-10-05 10:08:10.000000000 +1000
+++ working-2.6/arch/ppc64/kernel/process.c	2004-10-05 15:18:56.581996496 +1000
@@ -147,7 +147,6 @@
  */
 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 @@
 		}
 		preempt_enable();
 	}
-#endif
 }
 
 int dump_task_altivec(struct pt_regs *regs, elf_vrregset_t *vrregs)


-- 
David Gibson			| For every complex problem there is a
david AT gibson.dropbear.id.au	| solution which is simple, neat and
				| wrong.
http://www.ozlabs.org/people/dgibson

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-05  5:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-05  5:26 [TRIVIAL, PPC64] Remove redundant #ifdef CONFIG_ALTIVEC David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox