diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2015-01-03 16:55:54 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-04 09:13:45 -0500 |
commit | ff6defa6a8fae12205d64f55db395b1fcf35af8e (patch) | |
tree | a08b5c63a0c7e21f955e254178dc53ea0d7b6e3f /sound/pci/nm256 | |
parent | b76c0e95ab0f535e210df588b8ac42dd75b31c75 (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/nm256')
-rw-r--r-- | sound/pci/nm256/nm256.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c index 4e41a4e29a1e..3f52a44143a5 100644 --- a/sound/pci/nm256/nm256.c +++ b/sound/pci/nm256/nm256.c | |||
@@ -1460,10 +1460,8 @@ static int snd_nm256_free(struct nm256 *chip) | |||
1460 | if (chip->irq >= 0) | 1460 | if (chip->irq >= 0) |
1461 | free_irq(chip->irq, chip); | 1461 | free_irq(chip->irq, chip); |
1462 | 1462 | ||
1463 | if (chip->cport) | 1463 | iounmap(chip->cport); |
1464 | iounmap(chip->cport); | 1464 | iounmap(chip->buffer); |
1465 | if (chip->buffer) | ||
1466 | iounmap(chip->buffer); | ||
1467 | release_and_free_resource(chip->res_cport); | 1465 | release_and_free_resource(chip->res_cport); |
1468 | release_and_free_resource(chip->res_buffer); | 1466 | release_and_free_resource(chip->res_buffer); |
1469 | 1467 | ||