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>
Цей коміт міститься в:

зафіксовано
Takashi Iwai

джерело
b76c0e95ab
коміт
ff6defa6a8
@@ -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;
|
||||
}
|
||||
|
Посилання в новій задачі
Заблокувати користувача