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

Commit 3819ffdf authored by Markus Elfring's avatar Markus Elfring Committed by David S. Miller
Browse files

mISDN: Deletion of unnecessary checks 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 avatarDavid S. Miller <davem@davemloft.net>
parent 675a53bd
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -312,9 +312,7 @@ l1oip_ulaw_to_alaw(u8 *data, int len, u8 *result)
void
l1oip_4bit_free(void)
{
	if (table_dec)
	vfree(table_dec);
	if (table_com)
	vfree(table_com);
	table_com = NULL;
	table_dec = NULL;