iommu/vt-d: Use inline function dma_pte_superpage instead of macros
Use inline function dma_pte_superpage() instead of macro for better readability. Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
8f9d41b430
commit
e16922af9d
1 changed files with 1 additions and 1 deletions
|
@ -892,7 +892,7 @@ static struct dma_pte *dma_pfn_level_pte(struct dmar_domain *domain,
|
|||
break;
|
||||
}
|
||||
|
||||
if (pte->val & DMA_PTE_LARGE_PAGE) {
|
||||
if (dma_pte_superpage(pte)) {
|
||||
*large_page = total;
|
||||
return pte;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue