diff options
author | Qian Cai <cai@lca.pw> | 2019-05-31 16:16:02 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-06-03 05:55:58 -0400 |
commit | e314a7c92b3217e893cbe03b944c7afc9cbd3e4c (patch) | |
tree | 9274137e4840fa31c565bf47c24021ce8828f77f /drivers/iommu/intel-iommu.c | |
parent | f34e1176df34b87e88eb65cd730255c913f92f8c (diff) |
iommu/vt-d: Fix a variable set but not used
The commit "iommu/vt-d: Delegate the dma domain to upper layer" left an
unused variable,
drivers/iommu/intel-iommu.c: In function 'disable_dmar_iommu':
drivers/iommu/intel-iommu.c:1652:23: warning: variable 'domain' set but
not used [-Wunused-but-set-variable]
Signed-off-by: Qian Cai <cai@lca.pw>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index d9d7d669de81..876096c1f91b 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c | |||
@@ -1649,16 +1649,12 @@ static void disable_dmar_iommu(struct intel_iommu *iommu) | |||
1649 | 1649 | ||
1650 | spin_lock_irqsave(&device_domain_lock, flags); | 1650 | spin_lock_irqsave(&device_domain_lock, flags); |
1651 | list_for_each_entry_safe(info, tmp, &device_domain_list, global) { | 1651 | list_for_each_entry_safe(info, tmp, &device_domain_list, global) { |
1652 | struct dmar_domain *domain; | ||
1653 | |||
1654 | if (info->iommu != iommu) | 1652 | if (info->iommu != iommu) |
1655 | continue; | 1653 | continue; |
1656 | 1654 | ||
1657 | if (!info->dev || !info->domain) | 1655 | if (!info->dev || !info->domain) |
1658 | continue; | 1656 | continue; |
1659 | 1657 | ||
1660 | domain = info->domain; | ||
1661 | |||
1662 | __dmar_remove_one_dev_info(info); | 1658 | __dmar_remove_one_dev_info(info); |
1663 | } | 1659 | } |
1664 | spin_unlock_irqrestore(&device_domain_lock, flags); | 1660 | spin_unlock_irqrestore(&device_domain_lock, flags); |