Skip to contentSkip to conversation

via82xx: minor optimization in snd_via82xx_free

PATCH New Marcin Ślusarz 1 participant 1 message Dec 8, 2007 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 sound/pci/via82xx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/pci/via82xx.c +1 -1
index c6b68cc..a4c87a1 100644
@@ -2242,9 +2242,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);