diff options
author | Cyril Roelandt <tipecaml@gmail.com> | 2013-02-12 04:01:50 (GMT) |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2013-02-13 11:10:53 (GMT) |
commit | 91457df7733564015f846c501424610318a5b85f (patch) | |
tree | 0a7a62aeb855bf5728531aa28e2a7bbc916e89ca | |
parent | f528d980c17b8714aedc918ba86e058af914d66b (diff) | |
download | linux-fsl-qoriq-91457df7733564015f846c501424610318a5b85f.tar.xz |
iommu/amd: Remove redundant NULL check before dma_ops_domain_free().
dma_ops_domain_free on a NULL pointer is a no-op, so the NULL check in
amd_iommu_init_dma_ops() can be removed.
Signed-off-by: Cyril Roelandt <tipecaml@gmail.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
-rw-r--r-- | drivers/iommu/amd_iommu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index c1c74e0..f6f4a62 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -3187,8 +3187,7 @@ int __init amd_iommu_init_dma_ops(void) free_domains: for_each_iommu(iommu) { - if (iommu->default_dom) - dma_ops_domain_free(iommu->default_dom); + dma_ops_domain_free(iommu->default_dom); } return ret; |