1
0
Fork 0

[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>
hifive-unleashed-5.1
Marcin Ślusarz 2007-12-14 12:51:24 +01:00 committed by Jaroslav Kysela
parent b05e578740
commit 757d5a7561
1 changed files with 1 additions and 1 deletions

View 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);