Skip to content

Commit ff45ab9

Browse files
TinaZhangZWjoergroedel
authored andcommitted
iommu/vt-d: Remove a useless BUG_ON(dev->is_virtfn)
When dmar_alloc_pci_notify_info() is being invoked, the invoker has ensured the dev->is_virtfn is false. So, remove the useless BUG_ON in dmar_alloc_pci_notify_info(). Signed-off-by: Tina Zhang <tina.zhang@intel.com> Link: https://lore.kernel.org/r/20230406065944.2773296-7-tina.zhang@intel.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent cbf2f9e commit ff45ab9

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/iommu/intel/dmar.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ dmar_alloc_pci_notify_info(struct pci_dev *dev, unsigned long event)
127127
struct pci_dev *tmp;
128128
struct dmar_pci_notify_info *info;
129129

130-
BUG_ON(dev->is_virtfn);
131-
132130
/*
133131
* Ignore devices that have a domain number higher than what can
134132
* be looked up in DMAR, e.g. VMD subdevices with domain 0x10000

0 commit comments

Comments
 (0)