projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
675a53b
)
mISDN: Deletion of unnecessary checks before the function call "vfree"
author
Markus Elfring
<elfring@users.sourceforge.net>
Wed, 19 Nov 2014 19:48:26 +0000
(20:48 +0100)
committer
David S. Miller
<davem@davemloft.net>
Fri, 21 Nov 2014 17:17:53 +0000
(12:17 -0500)
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>
drivers/isdn/mISDN/l1oip_codec.c
patch
|
blob
|
history
diff --git
a/drivers/isdn/mISDN/l1oip_codec.c
b/drivers/isdn/mISDN/l1oip_codec.c
index a601c8472220764c99d004dddf54c238437d1f06..9b033be11a5f0e7a3331429001bdc8cdbac0e4a9 100644
(file)
--- 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;
}