aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/cs4281.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2015-01-03 16:55:54 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-04 09:13:45 -0500
commitff6defa6a8fae12205d64f55db395b1fcf35af8e (patch)
treea08b5c63a0c7e21f955e254178dc53ea0d7b6e3f /sound/pci/cs4281.c
parentb76c0e95ab0f535e210df588b8ac42dd75b31c75 (diff)
ALSA: Deletion of checks before the function call "iounmap"
The iounmap() function performs also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/cs4281.c')
-rw-r--r--sound/pci/cs4281.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c
index 05a4337f8116..ea339111c59f 100644
--- a/sound/pci/cs4281.c
+++ b/sound/pci/cs4281.c
@@ -1316,10 +1316,8 @@ static int snd_cs4281_free(struct cs4281 *chip)
1316 1316
1317 if (chip->irq >= 0) 1317 if (chip->irq >= 0)
1318 free_irq(chip->irq, chip); 1318 free_irq(chip->irq, chip);
1319 if (chip->ba0) 1319 iounmap(chip->ba0);
1320 iounmap(chip->ba0); 1320 iounmap(chip->ba1);
1321 if (chip->ba1)
1322 iounmap(chip->ba1);
1323 pci_release_regions(chip->pci); 1321 pci_release_regions(chip->pci);
1324 pci_disable_device(chip->pci); 1322 pci_disable_device(chip->pci);
1325 1323