From: Markus Elfring Date: Wed, 19 Nov 2014 19:48:26 +0000 (+0100) Subject: mISDN: Deletion of unnecessary checks before the function call "vfree" X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3819ffdff70da4c0d3bab0f8becabfc6936a230c;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git 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 Signed-off-by: David S. Miller --- 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) 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; }