aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2014-11-19 14:48:26 -0500
committerDavid S. Miller <davem@davemloft.net>2014-11-21 12:17:53 -0500
commit3819ffdff70da4c0d3bab0f8becabfc6936a230c (patch)
treea8fbbc9d493455de16ce640120cbd4e628c1eeef /drivers/isdn
parent675a53bd689c217bbe2736c09a57e10f95c686a7 (diff)
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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn')
-rw-r--r--drivers/isdn/mISDN/l1oip_codec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/isdn/mISDN/l1oip_codec.c b/drivers/isdn/mISDN/l1oip_codec.c
index a601c8472220..9b033be11a5f 100644
--- a/drivers/isdn/mISDN/l1oip_codec.c
+++ b/drivers/isdn/mISDN/l1oip_codec.c
@@ -312,10 +312,8 @@ l1oip_ulaw_to_alaw(u8 *data, int len, u8 *result)
312void 312void
313l1oip_4bit_free(void) 313l1oip_4bit_free(void)
314{ 314{
315 if (table_dec) 315 vfree(table_dec);
316 vfree(table_dec); 316 vfree(table_com);
317 if (table_com)
318 vfree(table_com);
319 table_com = NULL; 317 table_com = NULL;
320 table_dec = NULL; 318 table_dec = NULL;
321} 319}