Skip to content

Commit

Permalink
iommu/vt-d: Clean up unused variable in find_or_alloc_domain
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lu Baolu authored and Joerg Roedel committed May 15, 2018
1 parent 87684fd commit fcc35c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/iommu/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2574,16 +2574,14 @@ 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;

iommu = device_to_iommu(dev, &bus, &devfn);
if (!iommu)
return NULL;

req_id = ((u16)bus << 8) | devfn;

if (dev_is_pci(dev)) {
struct pci_dev *pdev = to_pci_dev(dev);

Expand Down

0 comments on commit fcc35c6

Please sign in to comment.