Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87164cc5 authored by Markus Elfring's avatar Markus Elfring Committed by Takashi Iwai
Browse files

ALSA: asihpi: Deletion of an unnecessary check before the function call "vfree"



The vfree() 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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent ea09dd3b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -547,7 +547,6 @@ void asihpi_adapter_remove(struct pci_dev *pci_dev)
	if (pa->irq)
		free_irq(pa->irq, pa);

	if (pa->p_buffer)
	vfree(pa->p_buffer);

	if (1)