diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2018-05-04 07:08:17 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2018-05-15 16:34:52 +0200 |
commit | fcc35c634255a5874793228492c74566aed166ac (patch) | |
tree | 486310c7aa58c4ed0cf3c5d261e278041be43834 /drivers/iommu | |
parent | iommu/vt-d: Fix iotlb psi missing for mappings (diff) | |
download | linux-fcc35c634255a5874793228492c74566aed166ac.tar.xz linux-fcc35c634255a5874793228492c74566aed166ac.zip |
iommu/vt-d: Clean up unused variable in find_or_alloc_domain
Remove it to make the code more concise.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-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) struct device_domain_info *info = NULL; struct dmar_domain *domain = NULL; struct intel_iommu *iommu; - u16 req_id, dma_alias; + u16 dma_alias; unsigned long flags; u8 bus, devfn; @@ -2582,8 +2582,6 @@ static struct dmar_domain *find_or_alloc_domain(struct device *dev, int gaw) if (!iommu) return NULL; - req_id = ((u16)bus << 8) | devfn; - if (dev_is_pci(dev)) { struct pci_dev *pdev = to_pci_dev(dev); |