Skip to content

Commit 154e3a6

Browse files
Adrian Huangjoergroedel
authored andcommitted
iommu/amd: Remove the unnecessary assignment
The assignment of the global variable 'iommu_detected' has been moved from amd_iommu_init_dma_ops() to amd_iommu_detect(), so this patch removes the assignment in amd_iommu_init_dma_ops(). Signed-off-by: Adrian Huang <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 9646674 commit 154e3a6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/iommu/amd_iommu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2297,7 +2297,6 @@ int __init amd_iommu_init_api(void)
22972297
int __init amd_iommu_init_dma_ops(void)
22982298
{
22992299
swiotlb = (iommu_default_passthrough() || sme_me_mask) ? 1 : 0;
2300-
iommu_detected = 1;
23012300

23022301
if (amd_iommu_unmap_flush)
23032302
pr_info("IO/TLB flush on unmap enabled\n");

0 commit comments

Comments
 (0)