iommu/vt-d: Remove a useless BUG_ON(dev->is_virtfn)
authorTina Zhang <tina.zhang@intel.com>
Thu, 13 Apr 2023 04:06:44 +0000 (12:06 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 13 Apr 2023 10:05:53 +0000 (12:05 +0200)
commitff45ab96465f013bee39ac88b756bb1129a7bc9d
tree4a52bdbfdc909e2e1d9c9c0959334449f7ea235d
parentcbf2f9e8badd483e2ee17a56ad8dbd1cfdcead20
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>
drivers/iommu/intel/dmar.c