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

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
...@@ -312,9 +312,7 @@ l1oip_ulaw_to_alaw(u8 *data, int len, u8 *result) ...@@ -312,9 +312,7 @@ l1oip_ulaw_to_alaw(u8 *data, int len, u8 *result)
void void
l1oip_4bit_free(void) l1oip_4bit_free(void)
{ {
if (table_dec)
vfree(table_dec); vfree(table_dec);
if (table_com)
vfree(table_com); vfree(table_com);
table_com = NULL; table_com = NULL;
table_dec = NULL; table_dec = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment