diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-09-13 14:15:21 +0200 |
---|---|---|
committer | Tyler Hicks <tyhicks@canonical.com> | 2016-06-20 17:02:22 +0200 |
commit | c39341cf0d08357f448f4c2fffe2ebcc9495fd01 (patch) | |
tree | c4ef593372802985b325d9726289cc54d6c96b63 /scripts/coccicheck | |
parent | Linux 4.7-rc4 (diff) | |
download | linux-c39341cf0d08357f448f4c2fffe2ebcc9495fd01.tar.xz linux-c39341cf0d08357f448f4c2fffe2ebcc9495fd01.zip |
ecryptfs: drop null test before destroy functions
Remove unneeded NULL test.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@ expression x; @@
-if (x != NULL)
\(kmem_cache_destroy\|mempool_destroy\|dma_pool_destroy\)(x);
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Diffstat (limited to 'scripts/coccicheck')
0 files changed, 0 insertions, 0 deletions