Skip to content

Commit

Permalink
iommu/vt-d: Don't use magic number in dma_pte_superpage
Browse files Browse the repository at this point in the history
Use the already defined DMA_PTE_LARGE_PAGE for testing
instead of hardcoding the value again.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Joerg Roedel committed Jul 4, 2014
1 parent 9b27e82 commit c3c75eb
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
@@ -304,7 +304,7 @@ static inline bool dma_pte_present(struct dma_pte *pte)

static inline bool dma_pte_superpage(struct dma_pte *pte)
{
return (pte->val & (1 << 7));
return (pte->val & DMA_PTE_LARGE_PAGE);
}

static inline int first_pte_in_page(struct dma_pte *pte)

0 comments on commit c3c75eb

Please sign in to comment.