aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTina Zhang <[email protected]>2023-04-13 12:06:44 +0800
committerJoerg Roedel <[email protected]>2023-04-13 12:05:53 +0200
commitff45ab96465f013bee39ac88b756bb1129a7bc9d (patch)
tree4a52bdbfdc909e2e1d9c9c0959334449f7ea235d
parentcbf2f9e8badd483e2ee17a56ad8dbd1cfdcead20 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
-rw-r--r--drivers/iommu/intel/dmar.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iommu/intel/dmar.c b/drivers/iommu/intel/dmar.c
index 01d0ca0019f2..9684c96247f8 100644
--- a/drivers/iommu/intel/dmar.c
+++ b/drivers/iommu/intel/dmar.c
@@ -127,8 +127,6 @@ dmar_alloc_pci_notify_info(struct pci_dev *dev, unsigned long event)
struct pci_dev *tmp;
struct dmar_pci_notify_info *info;
- BUG_ON(dev->is_virtfn);
-
/*
* Ignore devices that have a domain number higher than what can
* be looked up in DMAR, e.g. VMD subdevices with domain 0x10000