]> asedeno.scripts.mit.edu Git - linux.git/commit
iommu/dma: Refactor iommu_dma_mmap
authorChristoph Hellwig <hch@lst.de>
Mon, 20 May 2019 07:29:44 +0000 (09:29 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 May 2019 15:31:12 +0000 (17:31 +0200)
commitefd9f10b70689fdeacadc95b6e0ea6dc311fa64f
treed56bfbc22724e3a6b0d364d1b6dc7fb02d2d7df3
parent3fb3378bb1eb2905065211ab51a7bcc2c5e7bd29
iommu/dma: Refactor iommu_dma_mmap

Inline __iommu_dma_mmap_pfn into the main function, and use the
fact that __iommu_dma_get_pages return NULL for remapped contigous
allocations to simplify the code flow a bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c