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:
Yijing Wang 2014-05-20 20:37:51 +08:00 committed by Joerg Roedel
parent 8f9d41b430
commit e16922af9d

View File

@ -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;
}