[PATCH] fix compiler warning in sound/pci/cs46xx/cs46xx_lib.o

From: Martin J. Bligh (mbligh@aracnet.com)
Date: Fri Mar 28 2003 - 03:01:09 EST


Fix the following compiler warning:
sound/pci/cs46xx/cs46xx_lib.c: In function `amp_voyetra':
sound/pci/cs46xx/cs46xx_lib.c:3384: warning: unused variable `old'
by wrapping the old variable in the same ifdef as its usage.

diff -urpN -X /home/fletch/.diff.exclude
virgin/sound/pci/cs46xx/cs46xx_lib.c
cs46xx_lib/sound/pci/cs46xx/cs46xx_lib.c
--- virgin/sound/pci/cs46xx/cs46xx_lib.c Wed Mar 26 22:54:40 2003
+++ cs46xx_lib/sound/pci/cs46xx/cs46xx_lib.c Thu Mar 27 23:45:23 2003
@@ -3381,7 +3381,9 @@ static void amp_voyetra(cs46xx_t *chip,
         /* Manage the EAPD bit on the Crystal 4297
            and the Analog AD1885 */
            
+#ifdef CONFIG_SND_CS46XX_NEW_DSP
         int old = chip->amplifier;
+#endif
         int oval, val;
         
         chip->amplifier += change;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:31 EST