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>
Цей коміт міститься в:
Markus Elfring
2015-01-03 22:55:54 +01:00
зафіксовано Takashi Iwai
джерело b76c0e95ab
коміт ff6defa6a8
26 змінених файлів з 43 додано та 90 видалено

Переглянути файл

@@ -893,9 +893,7 @@ snd_harmony_free(struct snd_harmony *h)
if (h->irq >= 0)
free_irq(h->irq, h);
if (h->iobase)
iounmap(h->iobase);
iounmap(h->iobase);
kfree(h);
return 0;
}