Tag: a591989a7c162587f24305c3fe3bd8f055ed3329

iommu/amd: Drop null test before destroy functions

Author: Julia Lawall <Julia.Lawall@lip6.fr> Remove unneeded NULL test. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x; @@ -if (x != NULL) { \(kmem_cache_destroy\|mempool_destroy\|dma_pool_destroy\)(x); x = NULL; -} // Signed-off-by: Julia Lawall Signed-off-by: Joerg Roedel — drivers/iommu/amd_iommu_init.c | 7 ++—– 1 file changed, 2 insertions(+), 5 deletions(-)   diff …

Lire la suite