Skip to content

Commit

Permalink
iommu/vt-d: Use inline function dma_pte_superpage instead of macros
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yijing Wang authored and Joerg Roedel committed Jul 4, 2014
1 parent 8f9d41b commit e16922a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e16922a

Please sign in to comment.