mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
b76c0e95ab
commit
ff6defa6a8
26 changed files with 43 additions and 90 deletions
|
|
@ -889,8 +889,8 @@ static int aaci_probe_ac97(struct aaci *aaci)
|
|||
static void aaci_free_card(struct snd_card *card)
|
||||
{
|
||||
struct aaci *aaci = card->private_data;
|
||||
if (aaci->base)
|
||||
iounmap(aaci->base);
|
||||
|
||||
iounmap(aaci->base);
|
||||
}
|
||||
|
||||
static struct aaci *aaci_init_card(struct amba_device *dev)
|
||||
|
|
|
|||
Loading…
Reference in a new issue