xen/swiotlb: simplify range_straddles_page_boundary()
authorJuergen Gross <jgross@suse.com>
Fri, 14 Jun 2019 05:46:03 +0000 (07:46 +0200)
committerJuergen Gross <jgross@suse.com>
Thu, 1 Aug 2019 04:39:30 +0000 (06:39 +0200)
commitbf70726668c6116aa4976e0cc87f470be6268a2f
tree36601ac99e53f42fc47d1ef9b6549c28d0c72f38
parent50f6393f9654c561df4cdcf8e6cfba7260143601
xen/swiotlb: simplify range_straddles_page_boundary()

range_straddles_page_boundary() is open coding several macros from
include/xen/page.h. Use those instead. Additionally there is no need
to have check_pages_physically_contiguous() as a separate function as
it is used only once, so merge it into range_straddles_page_boundary().

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/swiotlb-xen.c