Messages in this thread Patch in this message | | | Date | Fri, 28 Mar 2003 00:01:09 -0800 | From | "Martin J. Bligh" <> | Subject | [PATCH] fix compiler warning in sound/pci/cs46xx/cs46xx_lib.o |
| |
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/
| |