diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2015-01-03 22:55:54 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-04 15:13:45 +0100 |
commit | ff6defa6a8fae12205d64f55db395b1fcf35af8e (patch) | |
tree | a08b5c63a0c7e21f955e254178dc53ea0d7b6e3f /sound/ppc/pmac.c | |
parent | b76c0e95ab0f535e210df588b8ac42dd75b31c75 (diff) | |
download | talos-obmc-linux-ff6defa6a8fae12205d64f55db395b1fcf35af8e.tar.gz talos-obmc-linux-ff6defa6a8fae12205d64f55db395b1fcf35af8e.zip |
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/ppc/pmac.c')
-rw-r--r-- | sound/ppc/pmac.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c index 5a13b22748b2..d399df473896 100644 --- a/sound/ppc/pmac.c +++ b/sound/ppc/pmac.c @@ -867,16 +867,11 @@ static int snd_pmac_free(struct snd_pmac *chip) snd_pmac_dbdma_free(chip, &chip->capture.cmd); snd_pmac_dbdma_free(chip, &chip->extra_dma); snd_pmac_dbdma_free(chip, &emergency_dbdma); - if (chip->macio_base) - iounmap(chip->macio_base); - if (chip->latch_base) - iounmap(chip->latch_base); - if (chip->awacs) - iounmap(chip->awacs); - if (chip->playback.dma) - iounmap(chip->playback.dma); - if (chip->capture.dma) - iounmap(chip->capture.dma); + iounmap(chip->macio_base); + iounmap(chip->latch_base); + iounmap(chip->awacs); + iounmap(chip->playback.dma); + iounmap(chip->capture.dma); if (chip->node) { int i; |