Commit 91457df7 authored by Cyril Roelandt's avatar Cyril Roelandt Committed by Joerg Roedel

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: default avatarCyril Roelandt <tipecaml@gmail.com>
Signed-off-by: default avatarJoerg Roedel <joro@8bytes.org>
parent f528d980
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment