commit | 13bf283408077931ace05449de92c68c1cb55120 | [log] [tgz] |
---|---|---|
author | Julia Lawall <Julia.Lawall@lip6.fr> | Sun Sep 13 14:15:26 2015 +0200 |
committer | Ilya Dryomov <idryomov@gmail.com> | Mon Nov 02 23:36:47 2015 +0100 |
tree | f7bb252e25cb3da43f0f3cb611d0aba2d94b3de5 | |
parent | 6a13feb9c82803e2b815eca72fa7a9f5561d7861 [diff] |
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>