xen-swiotlb: use io_tlb_end in xen_swiotlb_dma_supported
authorChristoph Hellwig <hch@lst.de>
Mon, 1 Mar 2021 07:44:28 +0000 (08:44 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 17 Mar 2021 00:34:35 +0000 (00:34 +0000)
commit6223d1cef7b462de9aeede5846e6dcdbbd1c4d60
treea2ad08b338000a97a01b4b52489c627d78eff55b
parent16bc75f3aa3963588b13b01f6dad589f85d9f733
xen-swiotlb: use io_tlb_end in xen_swiotlb_dma_supported

Use the existing variable that holds the physical address for
xen_io_tlb_end to simplify xen_swiotlb_dma_supported a bit, and remove
the otherwise unused xen_io_tlb_end variable and the xen_virt_to_bus
helper.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/swiotlb-xen.c