Skip to content

Commit 3df2ebc

Browse files
wei-w-wangjoergroedel
authored andcommitted
iommu/vt-d: Eliminate pci_physfn() in dmar_find_matched_satc_unit()
The function dmar_find_matched_satc_unit() contains a duplicate call to pci_physfn(). This call is unnecessary as pci_physfn() has already been invoked by the caller. Removing the redundant call simplifies the code and improves efficiency a bit. Signed-off-by: Wei Wang <wei.w.wang@intel.com> Link: https://lore.kernel.org/r/20250509140021.4029303-2-wei.w.wang@intel.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 868720f commit 3df2ebc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/iommu/intel/iommu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2686,7 +2686,6 @@ static struct dmar_satc_unit *dmar_find_matched_satc_unit(struct pci_dev *dev)
26862686
struct device *tmp;
26872687
int i;
26882688

2689-
dev = pci_physfn(dev);
26902689
rcu_read_lock();
26912690

26922691
list_for_each_entry_rcu(satcu, &dmar_satc_units, list) {

0 commit comments

Comments
 (0)