dmaengine: drop null test before destroy functions
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 13 Sep 2015 12:15:19 +0000 (14:15 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 21 Sep 2015 17:10:07 +0000 (22:40 +0530)
commit240eb916076c8deb206c7e66d1ee9eb37d6a499a
treec5fd17d5c974e202c69b1291d0c538b6099228b9
parent9c811209eb87f26e83f1b1afea186d4797f8b71e
dmaengine: 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: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmaengine.c
This page took 0.026218 seconds and 5 git commands to generate.