rbd: drop null test before destroy functions
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 13 Sep 2015 12:15:26 +0000 (14:15 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Nov 2015 22:36:47 +0000 (23:36 +0100)
commit13bf283408077931ace05449de92c68c1cb55120
treef7bb252e25cb3da43f0f3cb611d0aba2d94b3de5
parent6a13feb9c82803e2b815eca72fa7a9f5561d7861
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>
drivers/block/rbd.c
This page took 0.025393 seconds and 5 git commands to generate.