mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
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>
This commit is contained in:
parent
868720fe15
commit
3df2ebcee9
|
|
@ -2686,7 +2686,6 @@ static struct dmar_satc_unit *dmar_find_matched_satc_unit(struct pci_dev *dev)
|
|||
struct device *tmp;
|
||||
int i;
|
||||
|
||||
dev = pci_physfn(dev);
|
||||
rcu_read_lock();
|
||||
|
||||
list_for_each_entry_rcu(satcu, &dmar_satc_units, list) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user