Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 757d5a75 authored by Marcin Ślusarz's avatar Marcin Ślusarz Committed by Jaroslav Kysela
Browse files

[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: default avatarMarcin Ślusarz <marcin.slusarz@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent b05e5787
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);