* [PATCH] fix compiler warning in sound/pci/cs46xx/cs46xx_lib.o
@ 2003-03-28 8:01 Martin J. Bligh
0 siblings, 0 replies; only message in thread
From: Martin J. Bligh @ 2003-03-28 8:01 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-28 7:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-28 8:01 [PATCH] fix compiler warning in sound/pci/cs46xx/cs46xx_lib.o Martin J. Bligh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®