]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ALSA] via82xx: minor optimization in snd_via82xx_free
authorMarcin Ślusarz <marcin.slusarz@gmail.com>
Fri, 14 Dec 2007 11:51:24 +0000 (12:51 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:29:35 +0000 (17:29 +0100)
via82xx: minor optimization in snd_via82xx_free
don't check X, when we just checked !X before goto

Signed-off-by: Marcin Ślusarz <marcin.slusarz@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/via82xx.c

index ad58ca5bf80a1cd14fa3436fe2f15f9aca5d4a6e..18a58e43e78b199d9fccdd7140bf808855f431bd 100644 (file)
@@ -2238,9 +2238,9 @@ static int snd_via82xx_free(struct via82xx *chip)
        for (i = 0; i < chip->num_devs; i++)
                snd_via82xx_channel_reset(chip, &chip->devs[i]);
        synchronize_irq(chip->irq);
-      __end_hw:
        if (chip->irq >= 0)
                free_irq(chip->irq, chip);
+ __end_hw:
        release_and_free_resource(chip->mpu_res);
        pci_release_regions(chip->pci);