diff options
author | Yijing Wang <wangyijing@huawei.com> | 2014-05-20 08:37:50 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-07-04 05:34:00 -0400 |
commit | 8f9d41b430ae03ec63d544c34c31a82507b9e473 (patch) | |
tree | 1bd1c1e4f925deb7e2659f720c68cf27279a8d3e /drivers/iommu/intel-iommu.c | |
parent | 435bbb463349e369d070ffbfdaa00921ea828f83 (diff) |
iommu/vt-d: Clear the redundant assignment for domain->nid
Alloc_domain() will initialize domain->nid to -1. So the
initialization for domain->nid in md_domain_init() is redundant,
clear it.
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 4b0f1ac30478..5fee0f983c03 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c | |||
@@ -4148,7 +4148,6 @@ static int md_domain_init(struct dmar_domain *domain, int guest_width) | |||
4148 | domain->iommu_snooping = 0; | 4148 | domain->iommu_snooping = 0; |
4149 | domain->iommu_superpage = 0; | 4149 | domain->iommu_superpage = 0; |
4150 | domain->max_addr = 0; | 4150 | domain->max_addr = 0; |
4151 | domain->nid = -1; | ||
4152 | 4151 | ||
4153 | /* always allocate the top pgd */ | 4152 | /* always allocate the top pgd */ |
4154 | domain->pgd = (struct dma_pte *)alloc_pgtable_page(domain->nid); | 4153 | domain->pgd = (struct dma_pte *)alloc_pgtable_page(domain->nid); |