dma-direct: drop two CONFIG_DMA_RESTRICTED_POOL conditionals
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Oct 2021 07:34:59 +0000 (09:34 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 7 Dec 2021 11:50:10 +0000 (12:50 +0100)
commitf5d3939a5916c0a8a0b47dcbc33963dbffe74f90
tree973c36e5c2265935f6efe932f23aa794aaaf6bf0
parent78bc72787ab9e638173aeb1f589578105d3a43c9
dma-direct: drop two CONFIG_DMA_RESTRICTED_POOL conditionals

swiotlb_alloc and swiotlb_free are properly stubbed out if
CONFIG_DMA_RESTRICTED_POOL is not set, so skip the extra checks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
kernel/dma/direct.c