diff options
author | Marcin Ślusarz <marcin.slusarz@gmail.com> | 2007-12-14 06:51:24 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:29:35 -0500 |
commit | 757d5a7561842dd89c79d079a3c0935cd49afb9b (patch) | |
tree | b7203353d990b5994e122e174bd8e35ccffd0f13 /sound/pci | |
parent | b05e578740b5e58b729857321048c4babb24bf2b (diff) |
[ALSA] via82xx: minor optimization in snd_via82xx_free
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>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/via82xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index ad58ca5bf80a..18a58e43e78b 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -2238,9 +2238,9 @@ static int snd_via82xx_free(struct via82xx *chip) | |||
2238 | for (i = 0; i < chip->num_devs; i++) | 2238 | for (i = 0; i < chip->num_devs; i++) |
2239 | snd_via82xx_channel_reset(chip, &chip->devs[i]); | 2239 | snd_via82xx_channel_reset(chip, &chip->devs[i]); |
2240 | synchronize_irq(chip->irq); | 2240 | synchronize_irq(chip->irq); |
2241 | __end_hw: | ||
2242 | if (chip->irq >= 0) | 2241 | if (chip->irq >= 0) |
2243 | free_irq(chip->irq, chip); | 2242 | free_irq(chip->irq, chip); |
2243 | __end_hw: | ||
2244 | release_and_free_resource(chip->mpu_res); | 2244 | release_and_free_resource(chip->mpu_res); |
2245 | pci_release_regions(chip->pci); | 2245 | pci_release_regions(chip->pci); |
2246 | 2246 | ||