]> git.baikalelectronics.ru Git - kernel.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)
commitad3491ac6d76ff75a932d43f8e20b5fa210f892c
treed56bfbc22724e3a6b0d364d1b6dc7fb02d2d7df3
parent551bc3ffe3b638b149f2f67613dd013e37d58cab
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