diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2014-11-19 19:48:26 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-21 17:17:53 (GMT) |
commit | 3819ffdff70da4c0d3bab0f8becabfc6936a230c (patch) | |
tree | a8fbbc9d493455de16ce640120cbd4e628c1eeef /drivers/isdn/mISDN/l1oip_codec.c | |
parent | 675a53bd689c217bbe2736c09a57e10f95c686a7 (diff) | |
download | linux-3819ffdff70da4c0d3bab0f8becabfc6936a230c.tar.xz |
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/mISDN/l1oip_codec.c')
-rw-r--r-- | drivers/isdn/mISDN/l1oip_codec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/isdn/mISDN/l1oip_codec.c b/drivers/isdn/mISDN/l1oip_codec.c index a601c84..9b033be 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) void l1oip_4bit_free(void) { - if (table_dec) - vfree(table_dec); - if (table_com) - vfree(table_com); + vfree(table_dec); + vfree(table_com); table_com = NULL; table_dec = NULL; } |