Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f9d41b4 authored by Yijing Wang's avatar Yijing Wang Committed by Joerg Roedel
Browse files

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: default avatarYijing Wang <wangyijing@huawei.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 435bbb46
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -4148,7 +4148,6 @@ static int md_domain_init(struct dmar_domain *domain, int guest_width)
	domain->iommu_snooping = 0;
	domain->iommu_snooping = 0;
	domain->iommu_superpage = 0;
	domain->iommu_superpage = 0;
	domain->max_addr = 0;
	domain->max_addr = 0;
	domain->nid = -1;


	/* always allocate the top pgd */
	/* always allocate the top pgd */
	domain->pgd = (struct dma_pte *)alloc_pgtable_page(domain->nid);
	domain->pgd = (struct dma_pte *)alloc_pgtable_page(domain->nid);