summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu.c
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2013-02-12 05:01:50 +0100
committerJoerg Roedel <joro@8bytes.org>2013-02-13 12:10:53 +0100
commit91457df7733564015f846c501424610318a5b85f (patch)
tree0a7a62aeb855bf5728531aa28e2a7bbc916e89ca /drivers/iommu/amd_iommu.c
parentf528d980c17b8714aedc918ba86e058af914d66b (diff)
downloadtalos-obmc-linux-91457df7733564015f846c501424610318a5b85f.tar.gz
talos-obmc-linux-91457df7733564015f846c501424610318a5b85f.zip
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>
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-rw-r--r--drivers/iommu/amd_iommu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index c1c74e030a58..f6f4a62ddf09 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;
OpenPOWER on IntegriCloud