diff options
author | Cyril Roelandt <tipecaml@gmail.com> | 2013-02-12 05:01:50 +0100 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2013-02-13 12:10:53 +0100 |
commit | 91457df7733564015f846c501424610318a5b85f (patch) | |
tree | 0a7a62aeb855bf5728531aa28e2a7bbc916e89ca /drivers/iommu/amd_iommu.c | |
parent | f528d980c17b8714aedc918ba86e058af914d66b (diff) | |
download | op-kernel-dev-91457df7733564015f846c501424610318a5b85f.zip op-kernel-dev-91457df7733564015f846c501424610318a5b85f.tar.gz |
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.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; |