Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39c55546 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

x86/amd-iommu: Remove redundant device_flush_dte() calls



Remove these function calls from places where the function
has already been called by another function.

Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 2c53b436
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1798,7 +1798,6 @@ static int device_change_notifier(struct notifier_block *nb,
		goto out;
	}

	device_flush_dte(dev);
	iommu_completion_wait(iommu);

out:
@@ -2605,7 +2604,6 @@ static void amd_iommu_detach_device(struct iommu_domain *dom,
	if (!iommu)
		return;

	device_flush_dte(dev);
	iommu_completion_wait(iommu);
}