]> git.neil.brown.name Git - history.git/commitdiff
ALSA CVS update - Clemens Ladisch <clemens@ladisch.de>
authorJaroslav Kysela <perex@suse.cz>
Mon, 15 Mar 2004 12:07:56 +0000 (13:07 +0100)
committerJaroslav Kysela <perex@suse.cz>
Mon, 15 Mar 2004 12:07:56 +0000 (13:07 +0100)
au88x0 driver
fix compilation on gcc 2.95.x

sound/pci/au88x0/au88x0.c

index c70c076ad36c9b1cba0165f784fe2e3984e1c64e..6c917f6930199b95ed116fc83c90d11bfdb96612 100644 (file)
@@ -71,6 +71,8 @@ MODULE_DEVICE_TABLE(pci, snd_vortex_ids);
 static void __devinit snd_vortex_workaround(struct pci_dev *vortex, int fix)
 {
        struct pci_dev *via = NULL;
+       int rc;
+
        /* autodetect if workarounds are required */
        while ((via = pci_find_device(PCI_VENDOR_ID_VIA,
                                      PCI_DEVICE_ID_VIA_8365_1, via))) {
@@ -86,8 +88,6 @@ static void __devinit snd_vortex_workaround(struct pci_dev *vortex, int fix)
        if (fix == 255)
                return;
 
-       int rc;
-
        /* fix vortex latency */
        if (fix & 0x01) {
                if (!(rc = pci_write_config_byte(vortex, 0x40, 0xff))) {