diff options
| -rw-r--r-- | drivers/iommu/intel-iommu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 601d3789211f..fd5cfd85c166 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c | |||
| @@ -2574,7 +2574,7 @@ static struct dmar_domain *find_or_alloc_domain(struct device *dev, int gaw) | |||
| 2574 | struct device_domain_info *info = NULL; | 2574 | struct device_domain_info *info = NULL; |
| 2575 | struct dmar_domain *domain = NULL; | 2575 | struct dmar_domain *domain = NULL; |
| 2576 | struct intel_iommu *iommu; | 2576 | struct intel_iommu *iommu; |
| 2577 | u16 req_id, dma_alias; | 2577 | u16 dma_alias; |
| 2578 | unsigned long flags; | 2578 | unsigned long flags; |
| 2579 | u8 bus, devfn; | 2579 | u8 bus, devfn; |
| 2580 | 2580 | ||
| @@ -2582,8 +2582,6 @@ static struct dmar_domain *find_or_alloc_domain(struct device *dev, int gaw) | |||
| 2582 | if (!iommu) | 2582 | if (!iommu) |
| 2583 | return NULL; | 2583 | return NULL; |
| 2584 | 2584 | ||
| 2585 | req_id = ((u16)bus << 8) | devfn; | ||
| 2586 | |||
| 2587 | if (dev_is_pci(dev)) { | 2585 | if (dev_is_pci(dev)) { |
| 2588 | struct pci_dev *pdev = to_pci_dev(dev); | 2586 | struct pci_dev *pdev = to_pci_dev(dev); |
| 2589 | 2587 | ||
