diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-09-13 14:15:26 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-11-02 23:36:47 +0100 |
commit | 13bf283408077931ace05449de92c68c1cb55120 (patch) | |
tree | f7bb252e25cb3da43f0f3cb611d0aba2d94b3de5 /fs/ceph/cache.c | |
parent | 6a13feb9c82803e2b815eca72fa7a9f5561d7861 (diff) | |
download | talos-op-linux-13bf283408077931ace05449de92c68c1cb55120.tar.gz talos-op-linux-13bf283408077931ace05449de92c68c1cb55120.zip |
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 'fs/ceph/cache.c')
0 files changed, 0 insertions, 0 deletions