lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20071208204012.GB5087@joi>
Date:	Sat, 8 Dec 2007 21:40:17 +0100
From:	Marcin Ślusarz <marcin.slusarz@...il.com>
To:	perex@...ex.cz
Cc:	linux-kernel@...r.kernel.org
Subject: [PATCH] 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@...il.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);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ