From: Yijing Wang Date: Tue, 20 May 2014 12:37:50 +0000 (+0800) Subject: iommu/vt-d: Clear the redundant assignment for domain->nid X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=8f9d41b430ae03ec63d544c34c31a82507b9e473;p=deliverable%2Flinux.git 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 Signed-off-by: Joerg Roedel --- 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) 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);