Skip to content

Commit e314a7c

Browse files
Qian Caijoergroedel
authored andcommitted
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 <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent f34e117 commit e314a7c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/iommu/intel-iommu.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,16 +1649,12 @@ static void disable_dmar_iommu(struct intel_iommu *iommu)
16491649

16501650
spin_lock_irqsave(&device_domain_lock, flags);
16511651
list_for_each_entry_safe(info, tmp, &device_domain_list, global) {
1652-
struct dmar_domain *domain;
1653-
16541652
if (info->iommu != iommu)
16551653
continue;
16561654

16571655
if (!info->dev || !info->domain)
16581656
continue;
16591657

1660-
domain = info->domain;
1661-
16621658
__dmar_remove_one_dev_info(info);
16631659
}
16641660
spin_unlock_irqrestore(&device_domain_lock, flags);

0 commit comments

Comments
 (0)