pktcdvd: drop null test before destroy functions
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 13 Sep 2015 12:15:01 +0000 (14:15 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 29 Sep 2015 13:01:47 +0000 (15:01 +0200)
commit0220531a13b83d0049dcf1391a5a0cb10346962f
treee7158248c93c77786133c93b7013ebded73fb7ca
parente5f6450c3f40668de0b9c4cbc53bb345242df78f
pktcdvd: 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: Jiri Kosina <jkosina@suse.cz>
drivers/block/pktcdvd.c