diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-09-13 15:15:26 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-11-03 01:36:47 +0300 |
commit | 13bf283408077931ace05449de92c68c1cb55120 (patch) | |
tree | f7bb252e25cb3da43f0f3cb611d0aba2d94b3de5 /block/blk-exec.c | |
parent | 6a13feb9c82803e2b815eca72fa7a9f5561d7861 (diff) | |
download | linux-13bf283408077931ace05449de92c68c1cb55120.tar.xz |
rbd: 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);
x = NULL;
-}
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'block/blk-exec.c')
0 files changed, 0 insertions, 0 deletions