]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iommu/vt-d: Clear the redundant assignment for domain->nid
authorYijing Wang <wangyijing@huawei.com>
Tue, 20 May 2014 12:37:50 +0000 (20:37 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 4 Jul 2014 09:34:00 +0000 (11:34 +0200)
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>
drivers/iommu/intel-iommu.c

index 4b0f1ac3047828d49a3e7b3a76d6a05fea784313..5fee0f983c03afaa2d5485164eaa802444fe146c 100644 (file)
@@ -4148,7 +4148,6 @@ static int md_domain_init(struct dmar_domain *domain, int guest_width)
        domain->iommu_snooping = 0;
        domain->iommu_superpage = 0;
        domain->max_addr = 0;
-       domain->nid = -1;
 
        /* always allocate the top pgd */
        domain->pgd = (struct dma_pte *)alloc_pgtable_page(domain->nid);