* [PATCH] via82xx: minor optimization in snd_via82xx_free
@ 2007-12-08 20:40 Marcin Ślusarz
0 siblings, 0 replies; only message in thread
From: Marcin Ślusarz @ 2007-12-08 20:40 UTC (permalink / raw)
To: perex; +Cc: linux-kernel
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>
---
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 c6b68cc..a4c87a1 100644
--- a/sound/pci/via82xx.c
+++ b/sound/pci/via82xx.c
@@ -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);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-08 20:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-08 20:40 [PATCH] via82xx: minor optimization in snd_via82xx_free Marcin Ślusarz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).